ProfileResults .java

net.minecraft.util.profiling.ProfileResults (interface, 35 lines): members: getNanoDuration, demanglePath, getTickDuration, PATH_SEPARATOR, getEndTimeNano.

net.minecraft.util.profilinginterface35 linescommon655 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (1)

PATH_SEPARATOR

Code Graph: Dependencies (2)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ProfileResults.java35 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.profiling;
2
3
import java.nio.file.Path;
4
import java.util.List;
5
6
public interface ProfileResults {
7
	char PATH_SEPARATOR = '\u001e';
8
9
	List<ResultField> getTimes(String path);
10
11
	boolean saveResults(Path file);
12
13
	long getStartTimeNano();
14
15
	int getStartTimeTicks();
16
17
	long getEndTimeNano();
18
19
	int getEndTimeTicks();
20
21
	default long getNanoDuration() {
22
		return this.getEndTimeNano() - this.getStartTimeNano();
23
	}
24
25
	default int getTickDuration() {
26
		return this.getEndTimeTicks() - this.getStartTimeTicks();
27
	}
28
29
	String getProfilerResults();
30
31
	static String demanglePath(final String path) {
32
		return path.replace('\u001e', '.');
33
	}
34
}
35

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