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

Unified Diff: src/IceTimerTree.h

Issue 655563005: Subzero: Enhance the timer dump format. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Reset UpdateCount as well 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 | « no previous file | src/IceTimerTree.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTimerTree.h
diff --git a/src/IceTimerTree.h b/src/IceTimerTree.h
index 1f1458297c8ec5b0bd22e9b6dc940847932a8c79..88685bf694e045aaffb575fc7da6a40a67fc6848 100644
--- a/src/IceTimerTree.h
+++ b/src/IceTimerTree.h
@@ -32,11 +32,12 @@ typedef std::vector<TimerTreeNode>::size_type TTindex;
// index.
class TimerTreeNode {
public:
- TimerTreeNode() : Parent(0), Interior(0), Time(0) {}
+ TimerTreeNode() : Parent(0), Interior(0), Time(0), UpdateCount(0) {}
std::vector<TTindex> Children; // indexed by TimerIdT
TTindex Parent;
TimerIdT Interior;
double Time;
+ size_t UpdateCount;
};
class TimerStack {
@@ -59,7 +60,7 @@ public:
void dump(Ostream &Str, bool DumpCumulative);
private:
- void update();
+ void update(bool UpdateCounts);
static double timestamp();
IceString Name;
double FirstTimestamp;
@@ -70,6 +71,7 @@ private:
std::vector<IceString> IDs; // indexed by TimerIdT
std::vector<TimerTreeNode> Nodes; // indexed by TTindex
std::vector<double> LeafTimes; // indexed by TimerIdT
+ std::vector<size_t> LeafCounts; // indexed by TimerIdT
TTindex StackTop;
};
« no previous file with comments | « no previous file | src/IceTimerTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698