Struct InputMetrics
Provides information on the level of throughput going through the system.
Namespace: UnityEngine.InputSystem.LowLevel
Syntax
[Serializable]
public struct InputMetrics
Properties
averageEventBytesPerFrame
Average size of the event buffer received on every Update().
Declaration
public 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 double averageLagTimePerEvent { get; }
Property Value
Type | Description |
---|---|
Double |
See Also
averageProcessingTimePerEvent
Average time in seconds spend on processing each individual InputEvent.
Declaration
public double averageProcessingTimePerEvent { get; }
Property Value
Type | Description |
---|---|
Double |
currentControlCount
Total number of InputControls currently alive in devices in the system.
Declaration
public int currentControlCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
currentLayoutCount
Total number of currently registered layouts.
Declaration
public int currentLayoutCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
currentNumDevices
Number of devices currently added to the system.
Declaration
public int currentNumDevices { 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 { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
maxNumDevices
Maximum number of devices that were concurrently added to the system.
Declaration
public int maxNumDevices { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
See Also
maxStateSizeInBytes
The largest the combined state memory for all devices got.
Declaration
public int maxStateSizeInBytes { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
totalEventBytes
Total number of bytes of InputEvents consumed so far.
Declaration
public int totalEventBytes { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
totalEventCount
Total number of InputEvents consumed so far.
Declaration
public int totalEventCount { 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 { get; set; }
Property Value
Type | Description |
---|---|
Double |
totalEventProcessingTime
Total time in seconds spent processing InputEvents so far.
Declaration
public double totalEventProcessingTime { 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 { get; set; }
Property Value
Type | Description |
---|---|
Int32 |