bool opt_prof_bb = false;
#endif
+#if defined(ENABLE_OPAGENT)
+bool opt_opagent = false;
+#endif
/* optimization options *******************************************************/
#if defined(ENABLE_DISASSEMBLER)
int opt_DisassembleStubs = 0;
#endif
+#if defined(ENABLE_OPAGENT)
+int opt_EnableOpagent = 0;
+#endif
#if defined(ENABLE_GC_CACAO)
int opt_GCDebugRootSet = 0;
int opt_GCStress = 0;
OPT_DebugStackTrace,
OPT_DebugThreads,
OPT_DisassembleStubs,
+ OPT_EnableOpagent,
OPT_GCDebugRootSet,
OPT_GCStress,
OPT_Inline,
#if defined(ENABLE_DISASSEMBLER)
{ "DisassembleStubs", OPT_DisassembleStubs, OPT_TYPE_BOOLEAN, "disassemble builtin and native stubs when generated" },
#endif
+#if defined(ENABLE_OPAGENT)
+ { "EnableOpagent", OPT_EnableOpagent, OPT_TYPE_BOOLEAN, "enable providing JIT output to Oprofile" },
+#endif
#if defined(ENABLE_GC_CACAO)
{ "GCDebugRootSet", OPT_GCDebugRootSet, OPT_TYPE_BOOLEAN, "GC: print root-set at collection" },
{ "GCStress", OPT_GCStress, OPT_TYPE_BOOLEAN, "GC: forced collection at every allocation" },
break;
#endif
+#if defined(ENABLE_OPAGENT)
+ case OPT_EnableOpagent:
+ opt_EnableOpagent = enable;
+ break;
+#endif
+
#if defined(ENABLE_GC_CACAO)
case OPT_GCDebugRootSet:
opt_GCDebugRootSet = enable;