dmd -profile=gc
w0rp via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 4 04:01:13 PDT 2015
On Sunday, 3 May 2015 at 21:11:58 UTC, Walter Bright wrote:
> Just merged in is a new compiler switch that instruments
> generated code to collect statistics on memory allocation usage
> and generates a report upon program termination. (Much like how
> -profile works.)
>
> This was based on a prototype Andrei had written earlier.
>
> Andrei and I suspect it can be of great use in figuring out why
> a program may be excessively slow or consume excessive memory.
>
> I encourage giving it a try on some non-trivial project, and
> see if it gives useful information.
Nice! I bet this can be used to improve Phobos in tandem with
@nogc.
More information about the Digitalmars-d
mailing list