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

Unified Diff: src/IceTimerTree.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/IceTimerTree.h ('k') | src/IceTimerTree.def » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTimerTree.cpp
diff --git a/src/IceTimerTree.cpp b/src/IceTimerTree.cpp
index 0cd73dce2aa39e01acdc504e69bfd36f65a69907..618f37f931458fd72df4672bb3f12c79b78dae9e 100644
--- a/src/IceTimerTree.cpp
+++ b/src/IceTimerTree.cpp
@@ -97,6 +97,15 @@ void TimerStack::update() {
}
}
+void TimerStack::reset() {
+ StateChangeCount = 0;
+ FirstTimestamp = LastTimestamp = timestamp();
+ LeafTimes.assign(LeafTimes.size(), 0);
+ for (TimerTreeNode &Node : Nodes) {
+ Node.Time = 0;
+ }
+}
+
namespace {
typedef std::multimap<double, IceString> DumpMapType;
« no previous file with comments | « src/IceTimerTree.h ('k') | src/IceTimerTree.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698