Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
System.Diagnostics.Metrics.Histogram< T > Class Template Referencesealed

Public Member Functions

void Record (T value)
 
void Record (T value, KeyValuePair< string, object?> tag)
 
void Record (T value, KeyValuePair< string, object?> tag1, KeyValuePair< string, object?> tag2)
 
void Record (T value, KeyValuePair< string, object?> tag1, KeyValuePair< string, object?> tag2, KeyValuePair< string, object?> tag3)
 
void Record (T value, ReadOnlySpan< KeyValuePair< string, object?> > tags)
 
void Record (T value, params KeyValuePair< string, object?>[] tags)
 
void Record (T value, in TagList tagList)
 

Protected Member Functions

void Publish ()
 
void RecordMeasurement (T measurement)
 
void RecordMeasurement (T measurement, ReadOnlySpan< KeyValuePair< string, object?> > tags)
 
void RecordMeasurement (T measurement, KeyValuePair< string, object?> tag)
 
void RecordMeasurement (T measurement, KeyValuePair< string, object?> tag1, KeyValuePair< string, object?> tag2)
 
void RecordMeasurement (T measurement, KeyValuePair< string, object?> tag1, KeyValuePair< string, object?> tag2, KeyValuePair< string, object?> tag3)
 
void RecordMeasurement (T measurement, in TagList tagList)
 

Package Functions

 Histogram (Meter meter, string name, string unit, string description)
 
void NotifyForUnpublishedInstrument ()
 
object EnableMeasurement (ListenerSubscription subscription, out bool oldStateStored)
 
object DisableMeasurements (MeterListener listener)
 
virtual void Observe (MeterListener listener)
 
object GetSubscriptionState (MeterListener listener)
 

Static Package Functions

static void ValidateTypeParameter< T > ()
 

Package Attributes

readonly DiagLinkedList< ListenerSubscription_subscriptions = new DiagLinkedList<ListenerSubscription>()
 

Properties

static KeyValuePair< string, object?>[] EmptyTags [get]
 
static object SyncObject = new object() [get]
 
Meter Meter [get]
 
string Name [get]
 
stringDescription [get]
 
stringUnit [get]
 
bool Enabled [get]
 
virtual bool IsObservable [get]
 

Detailed Description

Type Constraints
T :struct 

Definition at line 5 of file Histogram.cs.


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