mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-20 11:09:35 +00:00
Fix minor derp when profiler is disabled, use default summary view
This commit is contained in:
1 parent
dd324c282e
commit
6b663dca57
2 files changed
+5
-3
No files matched your search
@@ -541,7 +541,7 @@ public class MixinTransformer extends TreeTransformer {
|
||||
private void printProfilerSummary() {
|
||||
DecimalFormat threedp = new DecimalFormat("(###0.000");
|
||||
DecimalFormat onedp = new DecimalFormat("(###0.0");
|
||||
PrettyPrinter printer = this.profiler.printer(false, true);
|
||||
PrettyPrinter printer = this.profiler.printer(false, false);
|
||||
|
||||
long prepareTime = this.profiler.get("mixin.prepare").getTotalTime();
|
||||
long readTime = this.profiler.get("mixin.read").getTotalTime();
|
||||
@@ -646,8 +646,9 @@ public class MixinTransformer extends TreeTransformer {
|
||||
if (basicClass == null) {
|
||||
for (IClassGenerator generator : this.generators) {
|
||||
Section genTimer = this.profiler.begin("generator", generator.getClass().getSimpleName().toLowerCase());
|
||||
if ((basicClass = generator.generate(transformedName)) != null) {
|
||||
genTimer.end();
|
||||
basicClass = generator.generate(transformedName);
|
||||
genTimer.end();
|
||||
if (basicClass != null) {
|
||||
this.exporter.export(transformedName.replace('.', '/'), false, basicClass);
|
||||
return basicClass;
|
||||
}
|
||||
|
||||
@@ -153,6 +153,7 @@ public final class Profiler {
|
||||
* @return fluent
|
||||
*/
|
||||
public Section end() {
|
||||
Profiler.this.end(this);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user