-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure the TraceEventSession is stopped in GcMetricsProvider (#1218)
* Update MetricsTests.cs Do allocations on LOH and trigger LOH GC * GC metrics: call _traceEventSession.Stop * Update GcMetricsProvider.cs * Update GcMetricsProvider.cs Use TraceLoadedDotNetRuntime.GCEnd to get GC duration instead of manually calculating it on Full Framework * Update GcMetricsProvider.cs * Update MetricsCollector.cs GcMetricsProvider has dependencies that can't be loaded in some environment - therefore we try-catch the `new GcMetricsProvider` line. * GC test: decrease number of iterations and handle when _traceEventSessionTask == null * Reuse _currentProcessId variable and avoid code elimination in GC test
- Loading branch information
1 parent
648595b
commit 88a8d64
Showing
3 changed files
with
65 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters