Chromium Code Reviews| Index: ui/base/latency_info.cc |
| diff --git a/ui/base/latency_info.cc b/ui/base/latency_info.cc |
| index 459fc2ab689a3183eede3c51a43042c2542a1c83..1d3bbdf2e3d90e5f42b15060d4ff802ac098b70b 100644 |
| --- a/ui/base/latency_info.cc |
| +++ b/ui/base/latency_info.cc |
| @@ -26,6 +26,20 @@ void LatencyInfo::MergeWith(const LatencyInfo& other) { |
| } |
| } |
| +void LatencyInfo::AddNewLatencyFrom(const LatencyInfo& other) { |
| + for (LatencyMap::const_iterator it = other.latency_components.begin(); |
|
sadrul
2013/08/06 19:49:31
Fix indentation
Yufeng Shen (Slow to review)
2013/08/06 20:01:04
Done.
|
| + it != other.latency_components.end(); |
| + ++it) { |
| + if (!FindLatency(it->first.first, it->first.second, NULL)) { |
| + AddLatencyNumberWithTimestamp(it->first.first, |
| + it->first.second, |
| + it->second.sequence_number, |
| + it->second.event_time, |
| + it->second.event_count); |
| + } |
| + } |
| +} |
| + |
| void LatencyInfo::AddLatencyNumber(LatencyComponentType component, |
| int64 id, |
| int64 component_sequence_number) { |