Bug 16377 – Make --DRT GC profile information available outside of GC destruction

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-08-11T21:32:41Z
Last change time
2019-01-04T11:17:44Z
Assigned to
No Owner
Creator
Ali Cehreli

Comments

Comment #0 by acehreli — 2016-08-11T21:32:41Z
Today, the results of "--DRT-gcopt=profile:1" are printed during GC destruction, which may never happen e.g. when the application exits with exit(). Please make the results available through a function call which would enable registering with atexit() as well as taking snapshots of the profile information at arbitrary times. (Also see bug 15602.) Ali
Comment #1 by github-bugzilla — 2019-01-04T11:17:43Z
Commit pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/81732af8c3464f6ffe5c6522d969bffa874d391e fix issue 16377 - Add access to GC runtime profile stats synchronize mak/SRC and mak/COPY fix module name of core.sys.freebsd.pthread_np