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

Unified Diff: src/IceGlobalContext.cpp

Issue 640713003: Subzero: Improve the output with the --timing-focus=xxx option. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 80-col Created 6 years, 2 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/IceTimerTree.h » ('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 80728b090a84efca3f6a77b7ca164814b6f9e7af..c8b429fc4b1b4c3d0a88fcf6a4534b82b8226f29 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -407,6 +407,17 @@ void GlobalContext::popTimer(TimerIdT ID, TimerStackIdT StackID) {
Timers[StackID].pop(ID);
}
+void GlobalContext::resetTimer(TimerStackIdT StackID) {
+ assert(StackID < Timers.size());
+ Timers[StackID].reset();
+}
+
+void GlobalContext::setTimerName(TimerStackIdT StackID,
+ const IceString &NewName) {
+ assert(StackID < Timers.size());
+ Timers[StackID].setName(NewName);
+}
+
void GlobalContext::dumpStats(const IceString &Name, bool Final) {
if (Flags.DumpStats) {
if (Final) {
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceTimerTree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698