Expose new EventCounter APIs (#23808)
authorSung Yoon Whang <suwhang@microsoft.com>
Wed, 10 Apr 2019 08:19:30 +0000 (01:19 -0700)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2019 08:19:30 +0000 (01:19 -0700)
commit95d37e097086187692c770471d79810482971b34
treea3861745a5de4a31b6cc26580fca4fd121df5f6d
parent448e39d3a060a41783df583c383f1b4a9fd3a185
Expose new EventCounter APIs (#23808)

* rename BaseCounter to DiagnosticCounter

* Change MetaData->Metadata

* Make EventSource and Name a property for counter classes

* Make the counter APIs public

* fix build errors

* Change float to double

* Few cleanups, fix test

* fix GetMetadataString

* PR feedback

* More PR feedback
src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/CounterGroup.cs
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/CounterPayload.cs
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/DiagnosticCounter.cs [moved from src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/BaseCounter.cs with 71% similarity]
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventCounter.cs
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IncrementingEventCounter.cs
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/IncrementingPollingCounter.cs
src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/PollingCounter.cs
tests/src/tracing/eventcounter/incrementingpollingcounter.cs
tests/src/tracing/eventcounter/pollingcounter.cs