End section
()
| 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 | { |
no test coverage detected