diff options
Diffstat (limited to 'src/graph.h')
-rw-r--r-- | src/graph.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/graph.h b/src/graph.h index bb4f10c..47a2e57 100644 --- a/src/graph.h +++ b/src/graph.h @@ -146,9 +146,10 @@ struct Edge { Edge() : rule_(NULL), pool_(NULL), dyndep_(NULL), env_(NULL), mark_(VisitNone), - id_(0), outputs_ready_(false), deps_loaded_(false), - deps_missing_(false), generated_by_dep_loader_(false), - implicit_deps_(0), order_only_deps_(0), implicit_outs_(0) {} + id_(0), run_time_ms_(0), critical_time_(0), outputs_ready_(false), + deps_loaded_(false), deps_missing_(false), + generated_by_dep_loader_(false), implicit_deps_(0), + order_only_deps_(0), implicit_outs_(0) {} /// Return true if all inputs' in-edges are ready. bool AllInputsReady() const; @@ -171,6 +172,9 @@ struct Edge { void Dump(const char* prefix="") const; + uint64_t critical_time() const { return critical_time_; } + void set_critical_time(uint64_t critical_time) { critical_time_ = critical_time; } + const Rule* rule_; Pool* pool_; std::vector<Node*> inputs_; @@ -179,6 +183,8 @@ struct Edge { BindingEnv* env_; VisitMark mark_; size_t id_; + int run_time_ms_; + uint64_t critical_time_; bool outputs_ready_; bool deps_loaded_; bool deps_missing_; |