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

Unified Diff: src/IceGlobalContext.cpp

Issue 1855683002: Subzero: Fix -timing-funcs and -timing-focus flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase 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/IceGlobalContext.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.cpp
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp
index 5689a3ec3ea50c7ca8d7340fce8a4801c2c56896..e7faa506f6e3ea4278a23b260cc22be8a4728dcf 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -966,6 +966,10 @@ void GlobalContext::dumpStats(const Cfg *Func) {
}
}
+void GlobalContext::mergeTimersFromTLS() {
+ getTimers()->mergeFrom(ICE_TLS_GET_FIELD(TLS)->Timers);
+}
+
void GlobalContext::dumpTimers(TimerStackIdT StackID, bool DumpCumulative) {
if (!BuildDefs::timers())
return;
@@ -992,7 +996,8 @@ TimerIdT TimerMarker::getTimerIdFromFuncName(GlobalContext *Ctx,
void TimerMarker::push() {
switch (StackID) {
case GlobalContext::TSK_Default:
- Active = getFlags().getSubzeroTimingEnabled();
+ Active = getFlags().getSubzeroTimingEnabled() ||
+ !getFlags().getTimingFocusOn().empty();
break;
case GlobalContext::TSK_Funcs:
Active = getFlags().getTimeEachFunction();
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698