Closures and memory allocation

Cym13 cpicard at openmailbox.org
Sat Jun 22 19:28:12 UTC 2019


On Saturday, 22 June 2019 at 19:26:13 UTC, Cym13 wrote:
> On Saturday, 22 June 2019 at 16:52:07 UTC, Anonymouse wrote:
>>[...]
>
> Clearly this is a good time for you to learn about the tools D 
> offers to profile allocations. There is the --profile=gc DMD 
> argument that you can use but here there's something better: 
> DMD's GC has a few hooks that are directly inside druntime and 
> therefore available to any D program.
>
> [...]

Ooops, sorry I went a bit fast there, --DRT-gcopt gives you the 
number of collections, not allocations.


More information about the Digitalmars-d-learn mailing list