mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-26 23:13:23 +00:00
Separate Profiler instances for things which can operate concurrently
This commit is contained in:
1 parent
b79b42a460
commit
4c7beea14c
13 files changed
+358
-76
No files matched your search
+1
-2
@@ -49,7 +49,6 @@ import org.spongepowered.asm.launch.platform.container.ContainerHandleURI;
|
||||
import org.spongepowered.asm.launch.platform.container.ContainerHandleVirtual;
|
||||
import org.spongepowered.asm.launch.platform.container.IContainerHandle;
|
||||
import org.spongepowered.asm.logging.ILogger;
|
||||
import org.spongepowered.asm.mixin.MixinEnvironment;
|
||||
import org.spongepowered.asm.mixin.MixinEnvironment.CompatibilityLevel;
|
||||
import org.spongepowered.asm.mixin.MixinEnvironment.Phase;
|
||||
import org.spongepowered.asm.mixin.throwables.MixinException;
|
||||
@@ -505,7 +504,7 @@ public class MixinServiceLaunchWrapper extends MixinServiceAbstract implements I
|
||||
String transformedName = className.replace('/', '.');
|
||||
String name = this.unmapClassName(transformedName);
|
||||
|
||||
Profiler profiler = MixinEnvironment.getProfiler();
|
||||
Profiler profiler = Profiler.getProfiler("mixin");
|
||||
Section loadTime = profiler.begin(Profiler.ROOT, "class.load");
|
||||
byte[] classBytes = this.getClassBytes(name, transformedName);
|
||||
loadTime.end();
|
||||
|
||||
Reference in new issue
Block a user