Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 78ab571b5c52376549a07423a1dfcc2b9decd74f..98b05d147a290d67e10cbe57daae8bc2f73b02ea 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -1378,12 +1378,22 @@ class HStatistics: public Malloced { |
return instance.get(); |
} |
+ void IncrementSubtotals(int64_t create_graph, |
+ int64_t optimize_graph, |
+ int64_t generate_code) { |
+ create_graph_ += create_graph; |
+ optimize_graph_ += optimize_graph; |
+ generate_code_ += generate_code; |
+ } |
+ |
private: |
HStatistics() |
: timing_(5), |
names_(5), |
sizes_(5), |
- total_(0), |
+ create_graph_(0), |
+ optimize_graph_(0), |
+ generate_code_(0), |
total_size_(0), |
full_code_gen_(0), |
source_size_(0) { } |
@@ -1391,7 +1401,9 @@ class HStatistics: public Malloced { |
List<int64_t> timing_; |
List<const char*> names_; |
List<unsigned> sizes_; |
- int64_t total_; |
+ int64_t create_graph_; |
+ int64_t optimize_graph_; |
+ int64_t generate_code_; |
unsigned total_size_; |
int64_t full_code_gen_; |
double source_size_; |
@@ -1401,7 +1413,6 @@ class HStatistics: public Malloced { |
class HPhase BASE_EMBEDDED { |
public: |
static const char* const kFullCodeGen; |
- static const char* const kTotal; |
explicit HPhase(const char* name) { Begin(name, NULL, NULL, NULL); } |
HPhase(const char* name, HGraph* graph) { |