Skip to content
Snippets Groups Projects
Commit 128e6d73 authored by Andreas Klebinger's avatar Andreas Klebinger
Browse files

Store cachegrind logs in output folder

parent f6c63b9b
No related branches found
No related tags found
1 merge request!69nofib updates: Properly move cachegrind logs to output folder and bump base bounds.
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment