Export GC Usage Statistics on Request for Profiling

tcak via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 15 09:14:39 PDT 2016


It is great to see memory usage on Xcode while running an iOS app.

What I thought is that:

1. GC knows available heap memory locations and their length.
2. GC can detect what parts of heap is in use.
3. A program can create a file to write (stdout, stderr, etc.)


So, when desired (e.g. use of a compiler flag), on runtime, GC 
could write statistical information to a file descriptor every 
time it runs. So, anyone could write a program to read that 
information to turn it into a graphical chart for profiling 
information.

Does GC have any support to collect this type of information 
currently?


More information about the Digitalmars-d mailing list