Commit d645311c authored by Aibek Sarimbekov's avatar Aibek Sarimbekov

added method for getting the instrumentation instance

parent 20efccc7
......@@ -6,11 +6,18 @@ import ch.usi.dag.disl.dynamicbypass.Bootstrap;
public class DiSLAgent {
private static Instrumentation myInstrumentation;
public static void premain(String agentArguments,
Instrumentation instrumentation) {
myInstrumentation = instrumentation;
if (!Boolean.getBoolean("dislserver.noBootstrap")) {
Bootstrap.completed(instrumentation);
}
}
public static Instrumentation getInstrumentation() {
return myInstrumentation;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment