Search in sources :

Example 1 with InspectServerSession

use of com.oracle.truffle.tools.chromeinspector.server.InspectServerSession in project graal by oracle.

the class InspectorTestInstrument method onCreate.

@Override
protected void onCreate(Env env) {
    TruffleExecutionContext context = TruffleExecutionContext.create("test", env, new PrintWriter(env.err()));
    TruffleRuntime runtime = new TruffleRuntime(context);
    TruffleDebugger debugger = new TruffleDebugger(context, suspend);
    TruffleProfiler profiler = new TruffleProfiler(context);
    InspectServerSession iss = new InspectServerSession(runtime, debugger, profiler, context);
    env.registerService(iss);
    env.registerService(context.getId());
}
Also used : InspectServerSession(com.oracle.truffle.tools.chromeinspector.server.InspectServerSession) TruffleExecutionContext(com.oracle.truffle.tools.chromeinspector.TruffleExecutionContext) TruffleRuntime(com.oracle.truffle.tools.chromeinspector.TruffleRuntime) TruffleDebugger(com.oracle.truffle.tools.chromeinspector.TruffleDebugger) TruffleProfiler(com.oracle.truffle.tools.chromeinspector.TruffleProfiler) PrintWriter(java.io.PrintWriter)

Aggregations

TruffleDebugger (com.oracle.truffle.tools.chromeinspector.TruffleDebugger)1 TruffleExecutionContext (com.oracle.truffle.tools.chromeinspector.TruffleExecutionContext)1 TruffleProfiler (com.oracle.truffle.tools.chromeinspector.TruffleProfiler)1 TruffleRuntime (com.oracle.truffle.tools.chromeinspector.TruffleRuntime)1 InspectServerSession (com.oracle.truffle.tools.chromeinspector.server.InspectServerSession)1 PrintWriter (java.io.PrintWriter)1