On Monday, 18 November 2019 at 00:20:12 UTC, Steven Schveighoffer wrote:
Is there a straightforward way to figure out how much memory the compiler uses during compilation?

So this isn't a great solution but what I have done in the past is just have a little script running

ps aux | grep dmd
sleep 1 # or whatever time you want

in a loop running in the background to gather some data as it goes. If combined with dmd -v you can interpolate the -v and ps output to get an idea of what the memory use is at a certain point of what the compiler is working on.

again i know it isn't great but it is easy to play with and better than nothing

Reply via email to