-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New Garbage Collection Metrics Sampler for .NET 6+ (#2838)
- Loading branch information
1 parent
d312d30
commit f24a5da
Showing
31 changed files
with
1,272 additions
and
56 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// Copyright 2020 New Relic, Inc. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace NewRelic.Agent.Core.Samplers | ||
{ | ||
public enum GCSampleType | ||
{ | ||
/// <summary> | ||
/// Gen 0 heap size as of the current sample | ||
/// </summary> | ||
Gen0Size, | ||
Gen0Promoted, | ||
/// <summary> | ||
/// Gen 1 heap size as of the current sample | ||
/// </summary> | ||
Gen1Size, | ||
Gen1Promoted, | ||
/// <summary> | ||
/// Gen 2 heap size as of the current sample | ||
/// </summary> | ||
Gen2Size, | ||
Gen2Survived, | ||
/// <summary> | ||
/// Large object heap size as of the current sample | ||
/// </summary> | ||
LOHSize, | ||
LOHSurvived, | ||
HandlesCount, | ||
InducedCount, | ||
PercentTimeInGc, | ||
/// <summary> | ||
/// Gen 0 heap collection count since the last sample | ||
/// </summary> | ||
Gen0CollectionCount, | ||
/// <summary> | ||
/// Gen 1 heap collection count since the last sample | ||
/// </summary> | ||
Gen1CollectionCount, | ||
/// <summary> | ||
/// Gen 2 heap collection count since the last sample | ||
/// </summary> | ||
Gen2CollectionCount, | ||
|
||
// the following are supported by GCSamplerV2 only | ||
/// <summary> | ||
/// Pinned object heap size | ||
/// </summary> | ||
POHSize, | ||
/// <summary> | ||
/// Large object heap collection count since the last sample | ||
/// </summary> | ||
LOHCollectionCount, | ||
/// <summary> | ||
/// Pinned object heap collection count since the last sample | ||
/// </summary> | ||
POHCollectionCount, | ||
/// <summary> | ||
/// Total heap memory in use as of the current sample | ||
/// </summary> | ||
TotalHeapMemory, | ||
/// <summary> | ||
/// Total committed memory in use as of the current sample | ||
/// </summary> | ||
TotalCommittedMemory, | ||
/// <summary> | ||
/// Total heap memory allocated since the last sample | ||
/// </summary> | ||
TotalAllocatedMemory, | ||
/// <summary> | ||
/// Fragmentation of the Gen 0 heap as of the current sample | ||
/// </summary> | ||
Gen0FragmentationSize, | ||
/// <summary> | ||
/// Fragmentation of the Gen 1 heap as of the current sample | ||
/// </summary> | ||
Gen1FragmentationSize, | ||
/// <summary> | ||
/// Fragmentation of the Gen 2 heap as of the current sample | ||
/// </summary> | ||
Gen2FragmentationSize, | ||
/// <summary> | ||
/// Fragmentation of the Large Object heap as of the current sample | ||
/// </summary> | ||
LOHFragmentationSize, | ||
/// <summary> | ||
/// Fragmentation of the Pinned Object heap as of the current sample | ||
/// </summary> | ||
POHFragmentationSize, | ||
} | ||
} |
Oops, something went wrong.