File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/mixin Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11package com .ishland .c2me .opts .dfc .mixin ;
22
3+ import com .google .common .base .Stopwatch ;
34import com .ishland .c2me .opts .dfc .common .gen .BytecodeGen ;
45import it .unimi .dsi .fastutil .objects .Reference2ReferenceMap ;
56import it .unimi .dsi .fastutil .objects .Reference2ReferenceOpenHashMap ;
@@ -26,6 +27,7 @@ public class MixinNoiseConfig {
2627
2728 @ Inject (method = "<init>" , at = @ At ("RETURN" ))
2829 private void postCreate (CallbackInfo ci ) {
30+ Stopwatch stopwatch = Stopwatch .createStarted ();
2931 Reference2ReferenceMap <DensityFunction , DensityFunction > tempCache = new Reference2ReferenceOpenHashMap <>();
3032 this .noiseRouter = new NoiseRouter (
3133 BytecodeGen .compile (this .noiseRouter .barrierNoise (), tempCache ),
@@ -53,6 +55,8 @@ private void postCreate(CallbackInfo ci) {
5355 BytecodeGen .compile (this .multiNoiseSampler .weirdness (), tempCache ),
5456 this .multiNoiseSampler .spawnTarget ()
5557 );
58+ stopwatch .stop ();
59+ System .out .println (String .format ("Density function compilation finished in %s" , stopwatch ));
5660 }
5761
5862}
You can’t perform that action at this time.
0 commit comments