Skip to content

Commit 8918cb6

Browse files
committed
Dump processes using memory.
1 parent d894e35 commit 8918cb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules_haskell_tests/tests/RunTests.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ shutdownBazel = do
182182
printMem :: String -> IO ()
183183
printMem msg = do
184184
putStrLn msg
185-
(_, stdOut, _) <- Process.readProcessWithExitCode "/usr/bin/memory_pressure" [] ""
185+
-- (_, stdOut, _) <- Process.readProcessWithExitCode "/usr/bin/memory_pressure" [] ""
186+
(_, stdOut, _) <- Process.readProcessWithExitCode "/usr/bin/top" ["-l", "1", "-s", "0", "-o", "mem", "-n", "15"] ""
186187
putStrLn stdOut
187188

188189
-- Generated dependencies for testing the ghcide support

0 commit comments

Comments
 (0)