MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / endSection

Method endSection

src/main/java/net/minecraft/profiler/Profiler.java:112–140  ·  view source on GitHub ↗

End section

()

Source from the content-addressed store, hash-verified

110 * End section
111 */
112 public void endSection()
113 {
114 if (this.profilerLocalEnabled)
115 {
116 if (this.profilingEnabled)
117 {
118 long i = System.nanoTime();
119 long j = this.timestampList.remove(this.timestampList.size() - 1);
120 this.sectionList.remove(this.sectionList.size() - 1);
121 long k = i - j;
122
123 if (this.profilingMap.containsKey(this.profilingSection))
124 {
125 this.profilingMap.put(this.profilingSection, this.profilingMap.get(this.profilingSection) + k);
126 }
127 else
128 {
129 this.profilingMap.put(this.profilingSection, k);
130 }
131
132 if (k > 100000000L)
133 {
134 logger.warn("Something\'s taking too long! \'" + this.profilingSection + "\' took aprox " + (double)k / 1000000.0D + " ms");
135 }
136
137 this.profilingSection = !this.sectionList.isEmpty() ? this.sectionList.get(this.sectionList.size() - 1) : "";
138 }
139 }
140 }
141
142 public List<Profiler.Result> getProfilingData(String p_76321_1_)
143 {

Callers 15

endStartSectionMethod · 0.95
beginRenderMethod · 0.80
mcProfilerEndSectionMethod · 0.80
runGameLoopMethod · 0.80
updateDisplayMethod · 0.80
runTickMethod · 0.80
getMouseOverMethod · 0.80
updateLightmapMethod · 0.80
func_181560_aMethod · 0.80
renderWorldMethod · 0.80
renderEntitiesMethod · 0.80
setupTerrainMethod · 0.80

Calls 7

putMethod · 0.65
getMethod · 0.65
removeMethod · 0.45
sizeMethod · 0.45
containsKeyMethod · 0.45
warnMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected