Record Class MemoryDiagnosticsModule.MemoryDiagnosticsSnapshot
java.lang.Object
java.lang.Record
pkg.exoad.poprock.core.debug.MemoryDiagnosticsModule.MemoryDiagnosticsSnapshot
- 所有已实现的接口:
Serializable
public static record MemoryDiagnosticsModule.MemoryDiagnosticsSnapshot(long initialFreeMemory, long initialTotalMemory, long currentFreeMemory, long currentTotalMemory, float freeMemoryDeviation, float totalMemoryDeviation, DiagnosticsModuleState moduleState, long timeStamp)
extends Record
implements Serializable
- 另请参阅:
-
字段概要
修饰符和类型字段说明private final long
currentFreeMemory
记录组件的字段。private final long
currentTotalMemory
记录组件的字段。private final float
freeMemoryDeviation
记录组件的字段。private final long
initialFreeMemory
记录组件的字段。private final long
initialTotalMemory
记录组件的字段。private final DiagnosticsModuleState
moduleState
记录组件的字段。private final long
timeStamp
记录组件的字段。private final float
totalMemoryDeviation
记录组件的字段。 -
构造器概要
构造器说明MemoryDiagnosticsSnapshot
(long initialFreeMemory, long initialTotalMemory, long currentFreeMemory, long currentTotalMemory, float freeMemoryDeviation, float totalMemoryDeviation, DiagnosticsModuleState moduleState, long timeStamp) 创建MemoryDiagnosticsSnapshot
记录的实例。 -
方法概要
修饰符和类型方法说明long
返回currentFreeMemory
记录组件的值。long
返回currentTotalMemory
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。float
返回freeMemoryDeviation
记录组件的值。final int
hashCode()
返回此对象的哈希代码值。long
返回initialFreeMemory
记录组件的值。long
返回initialTotalMemory
记录组件的值。返回moduleState
记录组件的值。long
返回timeStamp
记录组件的值。toString()
返回此记录的字符串表示形式。float
返回totalMemoryDeviation
记录组件的值。
-
字段详细资料
-
initialFreeMemory
private final long initialFreeMemoryinitialFreeMemory
记录组件的字段。 -
initialTotalMemory
private final long initialTotalMemoryinitialTotalMemory
记录组件的字段。 -
currentFreeMemory
private final long currentFreeMemorycurrentFreeMemory
记录组件的字段。 -
currentTotalMemory
private final long currentTotalMemorycurrentTotalMemory
记录组件的字段。 -
freeMemoryDeviation
private final float freeMemoryDeviationfreeMemoryDeviation
记录组件的字段。 -
totalMemoryDeviation
private final float totalMemoryDeviationtotalMemoryDeviation
记录组件的字段。 -
moduleState
moduleState
记录组件的字段。 -
timeStamp
private final long timeStamptimeStamp
记录组件的字段。
-
-
构造器详细资料
-
MemoryDiagnosticsSnapshot
public MemoryDiagnosticsSnapshot(long initialFreeMemory, long initialTotalMemory, long currentFreeMemory, long currentTotalMemory, float freeMemoryDeviation, float totalMemoryDeviation, DiagnosticsModuleState moduleState, long timeStamp) 创建MemoryDiagnosticsSnapshot
记录的实例。- 参数:
initialFreeMemory
-initialFreeMemory
记录组件的值initialTotalMemory
-initialTotalMemory
记录组件的值currentFreeMemory
-currentFreeMemory
记录组件的值currentTotalMemory
-currentTotalMemory
记录组件的值freeMemoryDeviation
-freeMemoryDeviation
记录组件的值totalMemoryDeviation
-totalMemoryDeviation
记录组件的值moduleState
-moduleState
记录组件的值timeStamp
-timeStamp
记录组件的值
-
-
方法详细资料
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
initialFreeMemory
public long initialFreeMemory()返回initialFreeMemory
记录组件的值。- 返回:
initialFreeMemory
记录组件的值
-
initialTotalMemory
public long initialTotalMemory()返回initialTotalMemory
记录组件的值。- 返回:
initialTotalMemory
记录组件的值
-
currentFreeMemory
public long currentFreeMemory()返回currentFreeMemory
记录组件的值。- 返回:
currentFreeMemory
记录组件的值
-
currentTotalMemory
public long currentTotalMemory()返回currentTotalMemory
记录组件的值。- 返回:
currentTotalMemory
记录组件的值
-
freeMemoryDeviation
public float freeMemoryDeviation()返回freeMemoryDeviation
记录组件的值。- 返回:
freeMemoryDeviation
记录组件的值
-
totalMemoryDeviation
public float totalMemoryDeviation()返回totalMemoryDeviation
记录组件的值。- 返回:
totalMemoryDeviation
记录组件的值
-
moduleState
返回moduleState
记录组件的值。- 返回:
moduleState
记录组件的值
-
timeStamp
public long timeStamp()返回timeStamp
记录组件的值。- 返回:
timeStamp
记录组件的值
-