Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nofib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
nofib
Commits
128e6d73
Commit
128e6d73
authored
2 years ago
by
Andreas Klebinger
Browse files
Options
Downloads
Patches
Plain Diff
Store cachegrind logs in output folder
parent
f6c63b9b
No related branches found
No related tags found
1 merge request
!69
nofib updates: Properly move cachegrind logs to output folder and bump base bounds.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shake/runner/Main.hs
+5
-2
5 additions, 2 deletions
shake/runner/Main.hs
with
5 additions
and
2 deletions
shake/runner/Main.hs
+
5
−
2
View file @
128e6d73
...
...
@@ -452,13 +452,16 @@ buildRules nofib@Build{..} = do
-- Run tests under cachegrind
[
"//Main.cachegrind.results.tsv"
]
&%>
\
[
resultsTsv
]
->
do
out'
<-
liftIO
$
IO
.
canonicalizePath
resultsTsv
let
test
=
testFromResultTsv
nofib
resultsTsv
src_dir
=
testDir
test
-- eg. spectral/simple
obj_dir
=
output
</>
src_dir
-- eg. _make/foo/spectral/simple
out'
<-
liftIO
$
IO
.
canonicalizePath
resultsTsv
obj_dir'
<-
liftIO
$
IO
.
canonicalizePath
obj_dir
let
cachegrindOut
n
=
FP
.
replaceFileName
out'
(
"Main.cachegrind.result"
<.>
show
n
)
let
wrapper_args
n
=
[
"valgrind"
,
"--tool=cachegrind"
]
<>
cachegrind_args
<>
[
"--cachegrind-out-file="
<>
cachegrindOut
n
,
"--log-file=cachegrind.log"
,
"--log-file=
"
<>
obj_dir'
</>
"
cachegrind.log"
]
let
parse_cachegrind
n
=
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment