| 1792 | } |
| 1793 | |
| 1794 | int64_t RuntimeProfile::CounterSum(const vector<Counter*>* counters) { |
| 1795 | int64_t value = 0; |
| 1796 | for (int i = 0; i < counters->size(); ++i) { |
| 1797 | value += (*counters)[i]->value(); |
| 1798 | } |
| 1799 | return value; |
| 1800 | } |
| 1801 | |
| 1802 | RuntimeProfile::EventSequence* RuntimeProfile::AddEventSequence(const string& name) { |
| 1803 | lock_guard<SpinLock> l(event_sequence_lock_); |