Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Diagnostics.Tracing.EventCounter Class Reference

Public Member Functions

 EventCounter (string name, EventSource eventSource)
 
void WriteMetric (float value)
 
void WriteMetric (double value)
 
override string ToString ()
 
void Dispose ()
 
void AddMetadata (string key, string? value)
 

Protected Member Functions

void Flush ()
 
void Publish ()
 

Package Functions

void OnMetricWritten (double value)
 
override void WritePayload (float intervalSec, int pollingIntervalMillisec)
 
void ResetStatistics ()
 
void ReportOutOfBandMessage (string message)
 
string GetMetadataString ()
 

Properties

string DisplayName [get, set]
 
string DisplayUnits [get, set]
 
string Name [get]
 
EventSource EventSource [get]
 

Private Member Functions

void Enqueue (double value)
 

Private Attributes

int _count
 
double _sum
 
double _sumSquared
 
double _min
 
double _max
 
readonly double[] _bufferedValues
 
volatile int _bufferedValuesIndex
 
string _displayName = ""
 
string _displayUnits = ""
 
CounterGroup _group
 
Dictionary< string, string_metadata
 

Detailed Description

Definition at line 8 of file EventCounter.cs.


The documentation for this class was generated from the following file: