| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/metrics/sparse_histogram.h" | 5 #include "base/metrics/sparse_histogram.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/metrics/histogram_base.h" | 10 #include "base/metrics/histogram_base.h" |
| 11 #include "base/metrics/histogram_macros.h" |
| 11 #include "base/metrics/histogram_samples.h" | 12 #include "base/metrics/histogram_samples.h" |
| 12 #include "base/metrics/persistent_histogram_allocator.h" | 13 #include "base/metrics/persistent_histogram_allocator.h" |
| 13 #include "base/metrics/persistent_memory_allocator.h" | 14 #include "base/metrics/persistent_memory_allocator.h" |
| 14 #include "base/metrics/sample_map.h" | 15 #include "base/metrics/sample_map.h" |
| 15 #include "base/metrics/statistics_recorder.h" | 16 #include "base/metrics/statistics_recorder.h" |
| 16 #include "base/pickle.h" | 17 #include "base/pickle.h" |
| 17 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 TimeDelta add_ticks = TimeTicks::Now() - add_start; | 321 TimeDelta add_ticks = TimeTicks::Now() - add_start; |
| 321 int64_t add_ms = add_ticks.InMilliseconds(); | 322 int64_t add_ms = add_ticks.InMilliseconds(); |
| 322 | 323 |
| 323 VLOG(1) << kTestAddCount << " histogram adds took " << add_ms | 324 VLOG(1) << kTestAddCount << " histogram adds took " << add_ms |
| 324 << "ms or about " | 325 << "ms or about " |
| 325 << (add_ms * 1000000) / kTestAddCount | 326 << (add_ms * 1000000) / kTestAddCount |
| 326 << "ns each."; | 327 << "ns each."; |
| 327 } | 328 } |
| 328 | 329 |
| 329 } // namespace base | 330 } // namespace base |
| OLD | NEW |