Class PerfManager
Inheritance
System.Object
PerfManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FChoice.Common
Assembly: FChoice.Common.dll
Syntax
public sealed class PerfManager
Properties
Instance
Declaration
public static PerfManager Instance { get; }
Property Value
Type | Description |
---|---|
PerfManager |
InstanceName
Declaration
public string InstanceName { get; }
Property Value
Type | Description |
---|---|
System.String |
IsEnabled
Declaration
public static bool IsEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInitialized
Declaration
public static bool IsInitialized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
DeInitialize()
Declaration
public static void DeInitialize()
Finalize()
Declaration
protected void Finalize()
GetCounter(String)
Declaration
public PerformanceCounter GetCounter(string counterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | counterName |
Returns
Type | Description |
---|---|
System.Diagnostics.PerformanceCounter |
GetPerfDurationSecs(Int64)
Declaration
public static decimal GetPerfDurationSecs(long startTicks)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTicks |
Returns
Type | Description |
---|---|
System.Decimal |
GetPerfTimer()
Declaration
public static long GetPerfTimer()
Returns
Type | Description |
---|---|
System.Int64 |
Initialize()
Declaration
public static void Initialize()