NetworkTransportStatisticField
A class in Root.Township, Alta.Utilities.Profiling.NetworkTransportMetrics.
One network traffic counter for the profiler. Reads a running total from a function you pass in and reports it relative to the last reset.
- Listed in Utilities and other Alta namespaces
- Inherits or implements
INetworkStatistic - Derived types
NetworkTransportCountStatisticField
Constructors
| Member | What it is |
|---|---|
NetworkTransportStatisticField(Func<int> getValueFunction, NetworkTransportStatisticType statisticType = 0) | Creates a NetworkTransportStatisticField from getValueFunction and statisticType. |
Fields
| Member | What it is |
|---|---|
protected const int NumberPaddingWidth | Column width (10) used to pad numbers in summaries. |
protected const int StringPaddingWidth | Column width (30) used to pad labels in summaries. |
7 private and internal fields
| Member | What it is |
|---|---|
private int currentValue | The raw counter value read from getValueFunction on the last UpdateValue. |
private Func<int> getValueFunction | The function that reads the underlying transport counter, passed to the constructor. |
private int oldByteValue | Value at the last UpdateValuePerLastSecond call, used to work out the per-second change. |
private int startValue | The raw counter value when totals were last reset; Value counts up from here. |
private NetworkTransportStatisticType statisticType | What the counter measures (bytes by default), shown in the inspector. |
private int value | Backing field for Value: the counter's change since the last reset. |
private float valuePerLastSecond | Backing field for ValuePerLastSecond: how much Value grew between the last two per-second updates. |
Properties
Methods
Used in
Members of other types that take, return or hold a NetworkTransportStatisticField: