Struct GcStats
Assembly: BenchmarkDotNet.dll
Syntax
public struct GcStats : IEquatable<GcStats>
Fields
AllocationQuantum
Declaration
public static readonly long AllocationQuantum
Field Value
Empty
Declaration
public static readonly GcStats Empty
Field Value
Properties
Gen0Collections
Declaration
public readonly int Gen0Collections { get; }
Property Value
Gen1Collections
Declaration
public readonly int Gen1Collections { get; }
Property Value
Gen2Collections
Declaration
public readonly int Gen2Collections { get; }
Property Value
TotalOperations
Declaration
public readonly long TotalOperations { get; }
Property Value
Methods
Equals(GcStats)
Declaration
public bool Equals(GcStats other)
Parameters
Type |
Name |
Description |
GcStats |
other |
|
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
FromForced(Int32)
Declaration
public static GcStats FromForced(int forcedFullGarbageCollections)
Parameters
Type |
Name |
Description |
Int32 |
forcedFullGarbageCollections |
|
Returns
GetBytesAllocatedPerOperation(BenchmarkCase)
Declaration
public long GetBytesAllocatedPerOperation(BenchmarkCase benchmarkCase)
Parameters
Returns
GetCollectionsCount(Int32)
Declaration
public int GetCollectionsCount(int generation)
Parameters
Type |
Name |
Description |
Int32 |
generation |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetTotalAllocatedBytes(Boolean)
returns total allocated bytes (not per operation)
Declaration
public long GetTotalAllocatedBytes(bool excludeAllocationQuantumSideEffects)
Parameters
Type |
Name |
Description |
Boolean |
excludeAllocationQuantumSideEffects |
Allocation quantum can affecting some of our nano-benchmarks in non-deterministic way.
when this parameter is set to true and the number of all allocated bytes is less or equal AQ, we ignore AQ and put 0 to the results
|
Returns
Parse(String)
Declaration
public static GcStats Parse(string line)
Parameters
Type |
Name |
Description |
String |
line |
|
Returns
ReadFinal()
Declaration
public static GcStats ReadFinal()
Returns
ReadInitial()
Declaration
public static GcStats ReadInitial()
Returns
ToOutputLine()
Declaration
public string ToOutputLine()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
WithTotalOperations(Int64)
Declaration
public GcStats WithTotalOperations(long totalOperationsCount)
Parameters
Type |
Name |
Description |
Int64 |
totalOperationsCount |
|
Returns
Operators
Addition(GcStats, GcStats)
Declaration
public static GcStats operator +(GcStats left, GcStats right)
Parameters
Returns
Subtraction(GcStats, GcStats)
Declaration
public static GcStats operator -(GcStats left, GcStats right)
Parameters
Returns
Implements