dmd memory usage
Adam D. Ruppe
destructionator at gmail.com
Mon Nov 18 00:33:20 UTC 2019
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
More information about the Digitalmars-d-learn
mailing list