Skip to content

Commit

Permalink
Dump processes using memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Jan 2, 2024
1 parent d894e35 commit 8918cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules_haskell_tests/tests/RunTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ shutdownBazel = do
printMem :: String -> IO ()
printMem msg = do
putStrLn msg
(_, stdOut, _) <- Process.readProcessWithExitCode "/usr/bin/memory_pressure" [] ""
-- (_, stdOut, _) <- Process.readProcessWithExitCode "/usr/bin/memory_pressure" [] ""
(_, stdOut, _) <- Process.readProcessWithExitCode "/usr/bin/top" ["-l", "1", "-s", "0", "-o", "mem", "-n", "15"] ""
putStrLn stdOut

-- Generated dependencies for testing the ghcide support
Expand Down

0 comments on commit 8918cb6

Please sign in to comment.