summaryrefslogtreecommitdiff
path: root/src/gc/gcinterface.h
diff options
context:
space:
mode:
authorSung Yoon Whang <suwhang@microsoft.com>2019-05-24 20:16:11 -0700
committerGitHub <noreply@github.com>2019-05-24 20:16:11 -0700
commitb676246c1dd880b7290a1313cdac309fe020aa6f (patch)
treeb53cc47a0b8fbac8de9276abb9d46667f2c482f0 /src/gc/gcinterface.h
parent852f40d5f1a3cff4d381c2de2d2a86fe8b1f29b4 (diff)
downloadcoreclr-b676246c1dd880b7290a1313cdac309fe020aa6f.tar.gz
coreclr-b676246c1dd880b7290a1313cdac309fe020aa6f.tar.bz2
coreclr-b676246c1dd880b7290a1313cdac309fe020aa6f.zip
Add more runtime GC counters (#24561)
* Add Series/CounterType to CounterPayload and IncrementingCounterPayload * merging with master * Add Generation sizes counter * Some cleanup * Add allocation rate counter * Fix build * add Allocation Rate runtime counter * Fix a potential div by zero exception * Add back in code commented out * Add LOH size counter * Fix linux build * GetTotalAllocated -> GetTotalAllocation * PR feedback * More cleanup + renaming per PR feedback * undo comments * more pr feedback * Use existing GC.GetTotalAllocatedBytes API instead * Remove duplicate GetTotalAllocation * More PR feedback * Fix x86 build * Match type between C++/C# * remove unused variables'
Diffstat (limited to 'src/gc/gcinterface.h')
-rw-r--r--src/gc/gcinterface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gc/gcinterface.h b/src/gc/gcinterface.h
index 083e84fdc6..6d09a62824 100644
--- a/src/gc/gcinterface.h
+++ b/src/gc/gcinterface.h
@@ -674,6 +674,10 @@ public:
// Indicates that an object's finalizer should be run upon the object's collection.
virtual bool RegisterForFinalization(int gen, Object* obj) = 0;
+ virtual int GetLastGCPercentTimeInGC() = 0;
+
+ virtual size_t GetLastGCGenerationSize(int gen) = 0;
+
/*
===========================================================================
Miscellaneous routines used by the VM.