| 748 | } |
| 749 | |
| 750 | void RuntimeProfile::Update( |
| 751 | const TRuntimeProfileTree& thrift_profile, bool add_default_counters) { |
| 752 | int idx = 0; |
| 753 | Update(thrift_profile.nodes, &idx, add_default_counters); |
| 754 | DCHECK_EQ(idx, thrift_profile.nodes.size()); |
| 755 | // Re-compute the total time for the entire profile tree. |
| 756 | ComputeTimeInProfile(); |
| 757 | } |
| 758 | |
| 759 | void RuntimeProfile::Update( |
| 760 | const vector<TRuntimeProfileNode>& nodes, int* idx, bool add_default_counters) { |