}
#endif // _TARGET_ARMARCH_
+const char* Compiler::compGetTieringName() const
+{
+ bool tier0 = opts.jitFlags->IsSet(JitFlags::JIT_FLAG_TIER0);
+ bool tier1 = opts.jitFlags->IsSet(JitFlags::JIT_FLAG_TIER1);
+ assert(!tier0 || !tier1); // We don't expect multiple TIER flags to be set at one time.
+
+ if (tier0)
+ {
+ return "Tier-0";
+ }
+ else if (tier1)
+ {
+ return "Tier-1";
+ }
+ else
+ {
+ return "No-Tier";
+ }
+}
+
void Compiler::compFunctionTraceStart()
{
#ifdef DEBUG
{
printf(" ");
}
- printf("{ Start Jitting Method %d %s (MethodHash=%08x)\n", Compiler::jitTotalMethodCompiled, info.compFullName,
- info.compMethodHash()); /* } editor brace matching workaround for this printf */
+ printf("{ Start Jitting Method %4d %s (MethodHash=%08x) %s\n", Compiler::jitTotalMethodCompiled,
+ info.compFullName, info.compMethodHash(),
+ compGetTieringName()); /* } editor brace matching workaround for this printf */
}
#endif // DEBUG
}
{
printf(" ");
}
+
+ // Note: that is incorrect if we are compiling several methods at the same time.
+ unsigned methodNumber = Compiler::jitTotalMethodCompiled - 1;
+
/* { editor brace-matching workaround for following printf */
- printf("} Jitted Method %03x at" FMT_ADDR "method %s size %08x%s%s\n", Compiler::jitTotalMethodCompiled,
- DBG_ADDR(methodCodePtr), info.compFullName, methodCodeSize,
- isNYI ? " NYI" : (compIsForImportOnly() ? " import only" : ""), opts.altJit ? " altjit" : "");
+ printf("} Jitted Method %4d at" FMT_ADDR "method %s size %08x%s%s\n", methodNumber, DBG_ADDR(methodCodePtr),
+ info.compFullName, methodCodeSize, isNYI ? " NYI" : (compIsForImportOnly() ? " import only" : ""),
+ opts.altJit ? " altjit" : "");
}
#endif // DEBUG
}
#ifdef DEBUG
if (JitConfig.DumpJittedMethods() == 1 && !compIsForInlining())
{
- printf("Compiling %4d %s::%s, IL size = %u, hsh=0x%x\n", Compiler::jitTotalMethodCompiled, info.compClassName,
- info.compMethodName, info.compILCodeSize, info.compMethodHash());
+ printf("Compiling %4d %s::%s, IL size = %u, hsh=0x%x %s\n", Compiler::jitTotalMethodCompiled,
+ info.compClassName, info.compMethodName, info.compILCodeSize, info.compMethodHash(),
+ compGetTieringName());
}
if (compIsForInlining())
{