use of com.navercorp.pinpoint.profiler.plugin.ClassFileTransformerLoader in project pinpoint by naver.
the class MockPluginSetup method setupPlugin.
@Override
public SetupResult setupPlugin(ProfilerPlugin plugin, ClassInjector classInjector) {
final DefaultProfilerPluginSetupContext pluginSetupContext = new DefaultProfilerPluginSetupContext(profilerConfig);
final GuardProfilerPluginContext guardPluginSetupContext = new GuardProfilerPluginContext(pluginSetupContext);
ClassFileTransformerLoader classFileTransformerLoader = new ClassFileTransformerLoader(profilerConfig, dynamicTransformTrigger);
InstrumentContext instrumentContext = new PluginInstrumentContext(profilerConfig, instrumentEngine, dynamicTransformTrigger, classInjector, classFileTransformerLoader);
try {
preparePlugin(plugin, instrumentContext);
plugin.setup(guardPluginSetupContext);
} finally {
guardPluginSetupContext.close();
}
SetupResult setup = new SetupResult(pluginSetupContext, classFileTransformerLoader);
return setup;
}
use of com.navercorp.pinpoint.profiler.plugin.ClassFileTransformerLoader in project pinpoint by naver.
the class DebugTransformerRegistry method newDebugTransformer.
private DebugTransformer newDebugTransformer(ProfilerConfig profilerConfig, InstrumentEngine instrumentEngine, DynamicTransformTrigger dynamicTransformTrigger) {
ClassInjector classInjector = newClassInjector(profilerConfig);
ClassFileTransformerLoader transformerRegistry = new ClassFileTransformerLoader(profilerConfig, dynamicTransformTrigger);
InstrumentContext debugContext = new PluginInstrumentContext(profilerConfig, instrumentEngine, dynamicTransformTrigger, classInjector, transformerRegistry);
return new DebugTransformer(instrumentEngine, debugContext);
}
Aggregations