Expose new EventCounter APIs (dotnet/coreclr#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)
commit123388e78d7504f879c3c3e7136856b49a1ed338
tree067057d17e61be3dd2ee52e1496f0d3fcdf1e7de
parentafbacfa9f495030d8f61297aaa4cd76d67d2f6a1
Expose new EventCounter APIs (dotnet/coreclr#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

Commit migrated from https://github.com/dotnet/coreclr/commit/95d37e097086187692c770471d79810482971b34
src/coreclr/tests/src/tracing/eventcounter/incrementingpollingcounter.cs
src/coreclr/tests/src/tracing/eventcounter/pollingcounter.cs
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/CounterGroup.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/CounterPayload.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/DiagnosticCounter.cs [moved from src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/BaseCounter.cs with 71% similarity]
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IncrementingEventCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IncrementingPollingCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/PollingCounter.cs