Add more runtime GC counters (dotnet/coreclr#24561)
authorSung Yoon Whang <suwhang@microsoft.com>
Sat, 25 May 2019 03:16:11 +0000 (20:16 -0700)
committerGitHub <noreply@github.com>
Sat, 25 May 2019 03:16:11 +0000 (20:16 -0700)
commit5b746a4f2f76233cdce99ffddc1570c8c5ca8df4
treeefed87e8393a05305a42cbca41469bf0e61d5f19
parente78ece05d09c1dc69473ceeaa50fdf9819ba704a
Add more runtime GC counters (dotnet/coreclr#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'

Commit migrated from https://github.com/dotnet/coreclr/commit/b676246c1dd880b7290a1313cdac309fe020aa6f
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/RuntimeEventSource.cs
src/coreclr/src/System.Private.CoreLib/src/System/GC.cs
src/coreclr/src/gc/gcee.cpp
src/coreclr/src/gc/gcimpl.h
src/coreclr/src/gc/gcinterface.h
src/coreclr/src/vm/comutilnative.cpp
src/coreclr/src/vm/comutilnative.h
src/coreclr/src/vm/ecalllist.h