Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1294)

Unified Diff: src/IceConverter.cpp

Issue 1784243006: Subzero: Improve the use of timers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCompiler.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceConverter.cpp
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp
index e69fd7a3a15106467839b9f9a08c204e128f079c..2440353587367f6d4f821e7c7bea4da4e059bf87 100644
--- a/src/IceConverter.cpp
+++ b/src/IceConverter.cpp
@@ -913,21 +913,12 @@ void Converter::convertGlobals(Module *Mod) {
}
void Converter::convertFunctions() {
- const TimerStackIdT StackID = GlobalContext::TSK_Funcs;
for (const Function &I : *Mod) {
if (I.empty())
continue;
-
- TimerIdT TimerID = 0;
- const bool TimeThisFunction = Ctx->getFlags().getTimeEachFunction();
- if (TimeThisFunction) {
- TimerID = Ctx->getTimerID(StackID, I.getName());
- Ctx->pushTimer(TimerID, StackID);
- }
+ TimerMarker _(Ctx, I.getName());
LLVM2ICEFunctionConverter FunctionConverter(*this);
FunctionConverter.convertFunction(&I);
- if (TimeThisFunction)
- Ctx->popTimer(TimerID, StackID);
}
}
« no previous file with comments | « src/IceCompiler.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698