mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-21 02:35:53 +10:00
[강운덕] [LUCYSUS-1744] 클래스 로더 분리를 위해서 Trace를 인터페이스로 분리.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1359 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -51,6 +51,14 @@ public class TomcatProfiler implements ClassFileTransformer {
|
||||
}
|
||||
// 이게 로드할 lib List임.
|
||||
List<URL> libUrlList = resolveLib(classPathResolver);
|
||||
AgentClassLoader agentClassLoader = new AgentClassLoader(libUrlList.toArray(new URL[libUrlList.size()]));
|
||||
agentClassLoader.setBootClass("com.profiler.boot.BootClassTest");
|
||||
try {
|
||||
agentClassLoader.boot();
|
||||
} catch (Exception e) {
|
||||
logger.info("test error");
|
||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
try {
|
||||
ProfilerConfig profilerConfig = readConfig(classPathResolver);
|
||||
|
||||
Reference in New Issue
Block a user