Bug 16019 – Implement a way to check GC usage stats from application

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-05-12T07:33:00Z
Last change time
2016-07-20T10:41:07Z
Keywords
pull
Assigned to
nobody
Creator
public

Comments

Comment #0 by public — 2016-05-12T07:33:55Z
The last remaining difference between our internal D2 compiler and vanilla 2.070 is addition of small stats function to runtime: void gc_usage ( ref size_t used, ref size_t available ); We use it for two main cases: 1) verify GC usage of library utilities 2) doing live reporting of app performance in quick info console Martin Nowak told it should be relatively easy to provide one (or similar) based on existing internal stat system, thus exposing the enhancement request to outer world.
Comment #1 by public — 2016-06-13T12:36:23Z
Comment #2 by public — 2016-07-20T10:40:59Z