Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: base/metrics/histogram.cc

Issue 16667013: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/metrics/field_trial_unittest.cc ('k') | base/metrics/histogram_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Histogram is an object that aggregates statistics, and can summarize them in 5 // Histogram is an object that aggregates statistics, and can summarize them in
6 // various forms, including ASCII graphical, HTML, and numerically (as a 6 // various forms, including ASCII graphical, HTML, and numerically (as a
7 // vector of numbers corresponding to each of the aggregating buckets). 7 // vector of numbers corresponding to each of the aggregating buckets).
8 // See header file for details and examples. 8 // See header file for details and examples.
9 9
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 11
12 #include <math.h> 12 #include <math.h>
13 13
14 #include <algorithm> 14 #include <algorithm>
15 #include <string> 15 #include <string>
16 16
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/debug/alias.h" 18 #include "base/debug/alias.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "base/metrics/sample_vector.h" 20 #include "base/metrics/sample_vector.h"
21 #include "base/metrics/statistics_recorder.h" 21 #include "base/metrics/statistics_recorder.h"
22 #include "base/pickle.h" 22 #include "base/pickle.h"
23 #include "base/string_util.h" 23 #include "base/strings/string_util.h"
24 #include "base/stringprintf.h" 24 #include "base/strings/stringprintf.h"
25 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
26 #include "base/values.h" 26 #include "base/values.h"
27 27
28 using std::string; 28 using std::string;
29 using std::vector; 29 using std::vector;
30 30
31 namespace base { 31 namespace base {
32 32
33 namespace { 33 namespace {
34 34
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 832
833 BucketRanges* bucket_ranges = new BucketRanges(ranges.size()); 833 BucketRanges* bucket_ranges = new BucketRanges(ranges.size());
834 for (size_t i = 0; i < ranges.size(); i++) { 834 for (size_t i = 0; i < ranges.size(); i++) {
835 bucket_ranges->set_range(i, ranges[i]); 835 bucket_ranges->set_range(i, ranges[i]);
836 } 836 }
837 bucket_ranges->ResetChecksum(); 837 bucket_ranges->ResetChecksum();
838 return bucket_ranges; 838 return bucket_ranges;
839 } 839 }
840 840
841 } // namespace base 841 } // namespace base
OLDNEW
« no previous file with comments | « base/metrics/field_trial_unittest.cc ('k') | base/metrics/histogram_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698