CpuLoadStat .java

net.minecraft.util.profiling.jfr.stats.CpuLoadStat (record, 10 lines): members: jvm, userJvm, system. strings: "machineTotal", "jvmSystem", "jvmUser".

net.minecraft.util.profiling.jfr.statsrecord10 linescommon340 B

API Surface (2)

record CpuLoadStat(double jvm, double userJvm, double system)
CpuLoadStat from(final RecordedEvent event)

String literals (3)

"jvmSystem"
"jvmUser"
"machineTotal"

Full Source

CpuLoadStat.java10 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.profiling.jfr.stats;
2
3
import jdk.jfr.consumer.RecordedEvent;
4
5
public record CpuLoadStat(double jvm, double userJvm, double system) {
6
	public static CpuLoadStat from(final RecordedEvent event) {
7
		return new CpuLoadStat(event.getFloat("jvmSystem"), event.getFloat("jvmUser"), event.getFloat("machineTotal"));
8
	}
9
}
10

Decompiled Minecraft 26.3 source of CpuLoadStat (net/minecraft/util/profiling/jfr/stats/CpuLoadStat.java) with Mojang official mappings, stored verbatim on the site.