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?

Reply via email to