Struct InputMetrics
Provides information on the level of throughput going through the system.
Namespace: UnityEngine.InputSystem.LowLevel
Syntax
public struct InputMetrics
Properties
averageEventBytesPerFrame
Average size of the event buffer received on every Update().
Declaration
public readonly float averageEventBytesPerFrame { get; }
Property Value
Type | Description |
---|---|
Single |
averageLagTimePerEvent
Average time it takes from when an event is generated to when it is processed.
Declaration
public readonly double averageLagTimePerEvent { get; }
Property Value
Type | Description |
---|---|
Double |
See Also
averageProcessingTimePerEvent
Average time in seconds spend on processing each individual InputEvent.
Declaration
public readonly double averageProcessingTimePerEvent { get; }
Property Value
Type | Description |
---|---|
Double |
currentControlCount
Total number of InputControls currently alive in devices in the system.
Declaration
public int currentControlCount { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
currentLayoutCount
Total number of currently registered layouts.
Declaration
public int currentLayoutCount { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
currentNumDevices
Number of devices currently added to the system.
Declaration
public int currentNumDevices { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
See Also
currentStateSizeInBytes
Total size of the combined state memory for all current devices.
Declaration
public int currentStateSizeInBytes { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
maxNumDevices
Maximum number of devices that were concurrently added to the system.
Declaration
public int maxNumDevices { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
See Also
maxStateSizeInBytes
The largest the combined state memory for all devices got.
Declaration
public int maxStateSizeInBytes { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
totalEventBytes
Total number of bytes of InputEvents consumed so far.
Declaration
public int totalEventBytes { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
totalEventCount
Total number of InputEvents consumed so far.
Declaration
public int totalEventCount { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
totalEventLagTime
Total accumulated time that has passed between when events were generated (see time) compared to when they were processed.
Declaration
public double totalEventLagTime { readonly get; set; }
Property Value
Type | Description |
---|---|
Double |
totalEventProcessingTime
Total time in seconds spent processing InputEvents so far.
Declaration
public double totalEventProcessingTime { readonly get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
Event processing usually amounts for the majority of time spent in Update() but not necessarily for all of it.
See Also
totalUpdateCount
Total number of input system updates run so far.
Declaration
public int totalUpdateCount { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |