December 18How to debug GC leak
I'm looking for a memory leak in my use of vibe.d JSON objects. The gc profiler built into the runtime only shows allocation count and allocation bytes, so I can make guesses around what might have leaked, but I can't be sure where or when, or exactly what leaked. I'm sure someone else has run into this problem before. How did you solve it? I had hoped to also get a view into what was freed and when.
December 18Re: How to debug GC leak
Posted in reply to Andrew Benton
On Monday, 18 December 2017 at 07:03:14 UTC, Andrew Benton wrote: > [snip] Looking at dmd's gc profile, it looks like only std.array.Appender!string has allocated enough to be the culprit. End program memory was 110MB and the Appender!string had allocated 127MB totaly with Appender!(Json) coming in second at 5.1MB.
Copyright © 1999-2017 by the D Language Foundation