| 1800 | } |
| 1801 | |
| 1802 | RuntimeProfile::EventSequence* RuntimeProfile::AddEventSequence(const string& name) { |
| 1803 | lock_guard<SpinLock> l(event_sequence_lock_); |
| 1804 | EventSequenceMap::iterator timer_it = event_sequence_map_.find(name); |
| 1805 | if (timer_it != event_sequence_map_.end()) return timer_it->second; |
| 1806 | |
| 1807 | EventSequence* timer = pool_->Add(new EventSequence()); |
| 1808 | event_sequence_map_[name] = timer; |
| 1809 | return timer; |
| 1810 | } |
| 1811 | |
| 1812 | RuntimeProfile::EventSequence* RuntimeProfile::AddEventSequence(const string& name, |
| 1813 | const TEventSequence& from) { |