in core/src/main/java/org/adoptopenjdk/jitwatch/parser/AbstractLogParser.java [305:358]
protected void handleTagNMethod(Tag tag)
{
Map<String, String> tagAttributes = tag.getAttributes();
String attrCompiler = tagAttributes.get(ATTR_COMPILER);
renameCompilationCompletedTimestamp(tag);
if (attrCompiler != null && attrCompiler.length() > 0)
{
if (C1.equalsIgnoreCase(attrCompiler))
{
handleMethodLine(tag, EventType.NMETHOD_C1);
}
else if (C2.equalsIgnoreCase(attrCompiler))
{
handleMethodLine(tag, EventType.NMETHOD_C2);
}
else if (J9.equalsIgnoreCase(attrCompiler))
{
handleMethodLine(tag, EventType.NMETHOD_J9);
}
else if (ZING.equalsIgnoreCase(attrCompiler))
{
handleMethodLine(tag, EventType.NMETHOD_ZING);
}
else if (FALCON.equalsIgnoreCase(attrCompiler))
{
handleMethodLine(tag, EventType.NMETHOD_FALCON);
}
else if (JVMCI.equalsIgnoreCase(attrCompiler))
{
handleMethodLine(tag, EventType.NMETHOD_JVMCI);
}
else
{
logger.error("Unexpected Compiler attribute: {} {}", attrCompiler, tag.toString(true));
logError("Unexpected Compiler attribute: " + attrCompiler);
}
}
else
{
String attrCompileKind = tagAttributes.get(ATTR_COMPILE_KIND);
if (attrCompileKind != null && C2N.equalsIgnoreCase(attrCompileKind))
{
handleMethodLine(tag, EventType.NMETHOD_C2N);
}
else
{
logError("Missing Compiler attribute " + tag);
}
}
}