Class GcCollectionsPerGenerationCollector
Returns the number of times System.GC has collected Generation.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NBench.Collection.GarbageCollection
Assembly: NBench.dll
Syntax
public class GcCollectionsPerGenerationCollector : MetricCollector, IDisposable
Constructors
GcCollectionsPerGenerationCollector(MetricName, Int32)
Declaration
public GcCollectionsPerGenerationCollector(MetricName name, int generation)
Parameters
Type | Name | Description |
---|---|---|
MetricName | name | |
System.Int32 | generation |
GcCollectionsPerGenerationCollector(MetricName, String, Int32)
Declaration
public GcCollectionsPerGenerationCollector(MetricName name, string unitName, int generation)
Parameters
Type | Name | Description |
---|---|---|
MetricName | name | |
System.String | unitName | |
System.Int32 | generation |
Properties
Generation
Refers to the number of the GC generation we're monitoring
Declaration
public int Generation { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Collect()
Declaration
public override double Collect()
Returns
Type | Description |
---|---|
System.Double |
Overrides
Implements
System.IDisposable