Commit 0590bed9 authored by Ben Gamari's avatar Ben Gamari 🐢

cachegrind

parent 1fe79ac1
......@@ -291,7 +291,7 @@ buildRules nofib@Build{..} = do
(stdin, args) <- liftIO $ getTestCmdline nofib test
executable <- liftIO $ IO.canonicalizePath $ output </> test </> "Main" <.> exe
out' <- liftIO $ IO.canonicalizePath out
cmd_ (Cwd test) (EchoStdout False) "valgrind" "--tool=cachegrind" ("--cachegrind-out-file="++out') executable args
cmd_ (Cwd test) (EchoStdout False) (Stdin stdin) "valgrind" "--tool=cachegrind" ("--cachegrind-out-file="++out') executable args
getTestCmdline :: Nofib -> String -> IO (FilePath, [String])
getTestCmdline nofib@Build{run=Just speed,..} test = do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment