use of com.navercorp.pinpoint.profiler.util.FileBinary in project pinpoint by naver.
the class PlainClassLoaderHandler method defineJarClass.
private void defineJarClass(ClassLoader classLoader, ClassLoaderAttachment attachment) {
if (isDebug) {
logger.debug("define Jar:{}", pluginConfig.getPluginJarURLExternalForm());
}
List<FileBinary> fileBinaryList = readJar();
Map<String, SimpleClassMetadata> classEntryMap = parse(fileBinaryList);
for (Map.Entry<String, SimpleClassMetadata> entry : classEntryMap.entrySet()) {
final SimpleClassMetadata classMetadata = entry.getValue();
ClassLoadingChecker classLoadingChecker = new ClassLoadingChecker();
classLoadingChecker.isFirstLoad(classMetadata.getClassName());
define0(classLoader, attachment, classMetadata, classEntryMap, classLoadingChecker);
}
}
use of com.navercorp.pinpoint.profiler.util.FileBinary in project pinpoint by naver.
the class PlainClassLoaderHandler method parse.
private Map<String, SimpleClassMetadata> parse(List<FileBinary> fileBinaryList) {
Map<String, SimpleClassMetadata> parseMap = new HashMap<>();
for (FileBinary fileBinary : fileBinaryList) {
SimpleClassMetadata classNode = parseClass(fileBinary);
parseMap.put(classNode.getClassName(), classNode);
}
return parseMap;
}
Aggregations