digitalmars.D.learn - How to debug GC leak
- Andrew Benton (8/8) Dec 17 2017 I'm looking for a memory leak in my use of vibe.d JSON objects.
- Andrew Benton (6/7) Dec 18 2017 Looking at dmd's gc profile, it looks like only
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.
Dec 17 2017
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.
Dec 18 2017