On 11/18/19 11:15 AM, Steven Schveighoffer wrote:
On 11/18/19 10:36 AM, Jacob Carlborg wrote:
On Monday, 18 November 2019 at 15:31:02 UTC, Steven Schveighoffer wrote:
I don't think this will work for me, as this isn't CTFE, and I'm
assuming the instantiated templates won't be collected because they
stay referenced for the whole program.
You could also combine that flag with the GC profiling flags.
That's a good point. I tried the profiling flags, but realized really
quickly that it doesn't use the GC. But if you told it to use the GC,
then that info becomes relevant.
I also noticed that dub suppresses the output of the profiler somehow (I
had to run it with -v, and then run the compile line by hand to get it
to do the profiling).
Yeah, as I expected it still gets killed by the OOM killer.
But still, good to know that switch exists.
-Steve