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

Unified Diff: src/IceGlobalContext.h

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/IceClFlags.def ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index cce9492819f68cd93b2e26daee4ab2b95dc3d395..2ce10830d6809e0dd15330b387635d36931b90ad 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -352,10 +352,13 @@ public:
/// newTimerStackID() creates a new TimerStack in the global space. It does
/// not affect any TimerStack objects in TLS.
TimerStackIdT newTimerStackID(const std::string &Name);
- /// dumpTimers() dumps the global timer data. As such, one probably wants to
- /// call mergeTimerStacks() as a prerequisite.
+ /// dumpTimers() dumps the global timer data. This assumes all the
+ /// thread-local copies of timer data have been merged into the global timer
+ /// data.
void dumpTimers(TimerStackIdT StackID = TSK_Default,
bool DumpCumulative = true);
+ /// Merges the current thread's copy of timer data into the global timer data.
+ void mergeTimersFromTLS();
/// The following methods affect only the calling thread's TLS timer data.
TimerIdT getTimerID(TimerStackIdT StackID, const std::string &Name);
void pushTimer(TimerIdT ID, TimerStackIdT StackID);
« no previous file with comments | « src/IceClFlags.def ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698