@TruffleInstrument.Registration(id = CPUTracerInstrument.ID, name = "CPU Tracer", version = CPUTracerInstrument.VERSION, services = {CPUTracer.class}) public class CPUTracerInstrument extends TruffleInstrument {
@TruffleInstrument.Registration(id = MemoryTracerInstrument.ID, name = "Memory Tracer", version = "0.2", services = {MemoryTracer.class}) public class MemoryTracerInstrument extends TruffleInstrument {
@TruffleInstrument.Registration(id = CPUSamplerInstrument.ID, name = "CPU Sampler", version = CPUSamplerInstrument.VERSION, services = {CPUSampler.class}) public class CPUSamplerInstrument extends TruffleInstrument {
@TruffleInstrument.Registration(id = HeapMonitorInstrument.ID, name = "Heap Allocation Monitor", version = HeapMonitorInstrument.VERSION, services = {HeapMonitor.class}) public class HeapMonitorInstrument extends TruffleInstrument {
@Registration(name = "Debugger", id = DebuggerInstrument.ID, services = Debugger.class) public final class DebuggerInstrument extends TruffleInstrument {
@Registration(name = "Debugger", id = DebuggerInstrument.ID, services = Debugger.class) public final class DebuggerInstrument extends TruffleInstrument {
@Registration(id = ProfilerInstrument.ID, services = Profiler.class) public class ProfilerInstrument extends TruffleInstrument { static final String ID = "profiler"; private Profiler profiler; @Override protected void onCreate(Env env) { this.profiler = new Profiler(env.getInstrumenter()); env.registerService(this.profiler); } @Override protected void onDispose(Env env) { if (profiler != null) { profiler.dispose(); } } }