Add new counter APIs (dotnet/coreclr#23077)
authorSung Yoon Whang <suwhang@microsoft.com>
Wed, 13 Mar 2019 08:10:35 +0000 (01:10 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2019 08:10:35 +0000 (01:10 -0700)
commiteb71a46fe820cc2a57b36cc1523dc28f56796b0e
tree926aff5a7605efa70bad87977e12ce22feee688f
parentcb2f7536bac0a0736500210d28f10b3d1a74aeb7
Add new counter APIs (dotnet/coreclr#23077)

* Refactor EventCounter and add PollingCounter

* Add PollingCounter

* Add IncrementingEventCounter and IncrementingPollingCounter

* Add MetaData API to Counters

* Some more refactoring

* removing commented out code

* some more cleanup

* build fix and addressing some PR comments

* Addressing PR feedback

* use StringBuilder to generate metadata string

Commit migrated from https://github.com/dotnet/coreclr/commit/d247b06ed9c4dc3e6f625629da7db846be687f2d
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/BaseCounter.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/CounterGroup.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/CounterPayload.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IncrementingEventCounter.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IncrementingPollingCounter.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/PollingCounter.cs [new file with mode: 0644]