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

Side by Side Diff: base/metrics/sparse_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/histogram_base.cc ('k') | base/metrics/sparse_histogram_unittest.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 #include "base/metrics/sparse_histogram.h" 5 #include "base/metrics/sparse_histogram.h"
6 6
7 #include "base/metrics/sample_map.h" 7 #include "base/metrics/sample_map.h"
8 #include "base/metrics/statistics_recorder.h" 8 #include "base/metrics/statistics_recorder.h"
9 #include "base/pickle.h" 9 #include "base/pickle.h"
10 #include "base/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 12
13 using std::map; 13 using std::map;
14 using std::string; 14 using std::string;
15 15
16 namespace base { 16 namespace base {
17 17
18 typedef HistogramBase::Count Count; 18 typedef HistogramBase::Count Count;
19 typedef HistogramBase::Sample Sample; 19 typedef HistogramBase::Sample Sample;
20 20
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 std::string* output) const { 169 std::string* output) const {
170 StringAppendF(output, 170 StringAppendF(output,
171 "Histogram: %s recorded %d samples", 171 "Histogram: %s recorded %d samples",
172 histogram_name().c_str(), 172 histogram_name().c_str(),
173 total_count); 173 total_count);
174 if (flags() & ~kHexRangePrintingFlag) 174 if (flags() & ~kHexRangePrintingFlag)
175 StringAppendF(output, " (flags = 0x%x)", flags() & ~kHexRangePrintingFlag); 175 StringAppendF(output, " (flags = 0x%x)", flags() & ~kHexRangePrintingFlag);
176 } 176 }
177 177
178 } // namespace base 178 } // namespace base
OLDNEW
« no previous file with comments | « base/metrics/histogram_base.cc ('k') | base/metrics/sparse_histogram_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698