Subzero: Add a few performance measurement tools.
--timing-funcs - Produces a sorted list of total time spent translating each function.
--timing-focus=<F> - Turns on the --timing equivalent just for one function. Use '*' to do this for all functions, i.e. get complete timing breakdowns across all functions.
--verbose-focus=<F> - Temporarily turns on --verbose=all for one function.
BUG= none
R=jvoung@chromium.org
Review URL: https://codereview.chromium.org/620373004
diff --git a/src/IceClFlags.h b/src/IceClFlags.h
index d6c232f..f1dec0c 100644
--- a/src/IceClFlags.h
+++ b/src/IceClFlags.h
@@ -25,8 +25,9 @@
: DisableInternal(false), SubzeroTimingEnabled(false),
DisableTranslation(false), DisableGlobals(false),
FunctionSections(false), UseIntegratedAssembler(false),
- UseSandboxing(false), DumpStats(false), DefaultGlobalPrefix(""),
- DefaultFunctionPrefix("") {}
+ UseSandboxing(false), DumpStats(false), TimeEachFunction(false),
+ DefaultGlobalPrefix(""), DefaultFunctionPrefix(""), TimingFocusOn(""),
+ VerboseFocusOn("") {}
bool DisableInternal;
bool SubzeroTimingEnabled;
bool DisableTranslation;
@@ -35,8 +36,11 @@
bool UseIntegratedAssembler;
bool UseSandboxing;
bool DumpStats;
+ bool TimeEachFunction;
IceString DefaultGlobalPrefix;
IceString DefaultFunctionPrefix;
+ IceString TimingFocusOn;
+ IceString VerboseFocusOn;
};
} // end of namespace Ice