Property | Type | Description | |
---|---|---|---|
AddProperty | void | ||
GetErrors | string | ||
IncrementCounter | void | ||
Log | void | ||
Log | void | ||
LogError_Locked | void | ||
LogHelper | void | ||
ObjectToString | string | ||
RequestMetrics | System | ||
SetCounter | void | ||
StartEvent | |||
StopEvent |
Method | Description | |
---|---|---|
ToString ( ) : string |
Returns a string representation of the current metrics.
|
Method | Description | |
---|---|---|
AddProperty ( Metric metric, object property ) : void |
Adds a property for a metric. If there are multiple, the object is added as a new item in a list.
|
|
GetErrors ( ) : string |
Returns errors associated with the metric, including if there are still any timing events in-flight.
|
|
IncrementCounter ( Metric metric ) : void |
Increments a specific metric counter. If counter doesn't exist yet, it is set to 1.
|
|
Log ( StringBuilder builder, Metric metric, List | ||
Log ( StringBuilder builder, Metric metric, object metricValue ) : void | ||
LogError_Locked ( Metric metric, string messageFormat ) : void | ||
LogHelper ( StringBuilder builder, Metric metric ) : void | ||
ObjectToString ( object data ) : string | ||
RequestMetrics ( ) : System |
Constructs an empty, disabled metrics object
|
|
SetCounter ( Metric metric, long value ) : void |
Sets a counter for a specific metric.
|
|
StartEvent ( Metric metric ) : |
Starts timing an event. Logs an exception if an event of the same type was started but not stopped.
|
|
StopEvent ( Metric metric ) : |
Stops timing an event. Logs an exception if the event wasn't started.
|