On Thursday, August 11, 2016 02:17:06 Ali Çehreli via Digitalmars-d wrote: > I've noticed that GC profiling[1] is not provided if the application > exit()s as opposed to returns. Is that intended? Would it be possible to > print it still? > > Related, stdout may not be the best place for that information: ;) > > https://issues.dlang.org/show_bug.cgi?id=15602 > > Ali > > [1] https://dlang.org/spec/garbage.html#gc_config
Well, you could register stuff with atexit() so that it runs when exit() is called, but calling exit() isn't much better than hitting assert(0) or using ctrl-c. exit() doesn't shut things down even vaguely cleanly. So, you _might_ be able to get something thanks to atexit(), but I'm not sure how much you can really do given that your program has basically just been shot in the head. - Jonathan M Davis
