File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/org/truffleruby Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ public class RubyLanguage extends TruffleLanguage<RubyContext> {
66
66
67
67
@ Override
68
68
public RubyContext createContext (Env env ) {
69
+ // We need to initialize the Metrics class of the language classloader
70
+ Metrics .begin ();
71
+
69
72
LOGGER .fine ("createContext()" );
70
73
Metrics .printTime ("before-create-context" );
71
74
// TODO CS 3-Dec-16 need to parse RUBYOPT here if it hasn't been already?
@@ -84,6 +87,9 @@ protected void initializeContext(RubyContext context) throws Exception {
84
87
85
88
@ Override
86
89
protected boolean patchContext (RubyContext context , Env newEnv ) {
90
+ // We need to initialize the Metrics class of the language classloader
91
+ Metrics .begin ();
92
+
87
93
LOGGER .fine ("patchContext()" );
88
94
Metrics .printTime ("before-patch-context" );
89
95
boolean patched = context .patchContext (newEnv );
You can’t perform that action at this time.
0 commit comments