Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
2a99c19a
Commit
2a99c19a
authored
Jun 15, 2012
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test for INLINE and -fprof-auto (#6131)
I had the test lying around already, just hooking it up
parent
0c0b2bb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
testsuite/tests/profiling/should_run/all.T
testsuite/tests/profiling/should_run/all.T
+1
-0
testsuite/tests/profiling/should_run/profinline001.hs
testsuite/tests/profiling/should_run/profinline001.hs
+14
-0
testsuite/tests/profiling/should_run/profinline001.prof.sample
...uite/tests/profiling/should_run/profinline001.prof.sample
+28
-0
testsuite/tests/profiling/should_run/profinline001.stdout
testsuite/tests/profiling/should_run/profinline001.stdout
+1
-0
No files found.
testsuite/tests/profiling/should_run/all.T
View file @
2a99c19a
...
...
@@ -113,3 +113,4 @@ test('T5363',
[
req_profiling
,
extra_ways
(['
prof
']),
only_ways
(
prof_ways
)
],
compile_and_run
,
[''])
test
('
profinline001
',
extra_ways
(['
prof
']),
compile_and_run
,
[''])
testsuite/tests/profiling/should_run/profinline001.hs
0 → 100644
View file @
2a99c19a
module
Main
(
main
,
f
,
g
,
h
,
i
)
where
main
=
print
(
f
42
)
f
,
g
,
h
,
i
::
Int
->
Int
f
x
=
g
x
+
h
x
+
i
x
g
x
=
x
+
1
{-# INLINE h #-}
h
x
=
x
+
2
{-# INLINABLE i #-}
i
x
=
x
+
3
testsuite/tests/profiling/should_run/profinline001.prof.sample
0 → 100644
View file @
2a99c19a
Fri Jun 15 11:01 2012 Time and Allocation Profiling Report (Final)
profinline001 +RTS -p -RTS
total time = 0.00 secs (0 ticks @ 1000 us, 1 processor)
total alloc = 49,336 bytes (excludes profiling overheads)
COST CENTRE MODULE %time %alloc
MAIN MAIN 0.0 1.2
CAF GHC.IO.Handle.FD 0.0 71.0
CAF GHC.IO.Encoding 0.0 5.7
CAF GHC.Conc.Signal 0.0 1.4
main Main 0.0 19.2
individual inherited
COST CENTRE MODULE no. entries %time %alloc %time %alloc
MAIN MAIN 103 0 0.0 1.2 0.0 100.0
CAF Main 205 0 0.0 0.8 0.0 20.3
main Main 206 1 0.0 19.2 0.0 19.5
f Main 207 1 0.0 0.3 0.0 0.4
g Main 208 1 0.0 0.0 0.0 0.0
CAF GHC.Conc.Signal 203 0 0.0 1.4 0.0 1.4
CAF GHC.IO.Encoding 195 0 0.0 5.7 0.0 5.7
CAF GHC.IO.Encoding.Iconv 193 0 0.0 0.5 0.0 0.5
CAF GHC.IO.Handle.FD 185 0 0.0 71.0 0.0 71.0
testsuite/tests/profiling/should_run/profinline001.stdout
0 → 100644
View file @
2a99c19a
132
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment