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

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

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 8
9 // It supports calls to accumulate either time intervals (which are processed 9 // It supports calls to accumulate either time intervals (which are processed
10 // as integral number of milliseconds), or arbitrary integral units. 10 // as integral number of milliseconds), or arbitrary integral units.
(...skipping 19 matching lines...) Expand all
30 30
31 #ifndef BASE_METRICS_HISTOGRAM_H_ 31 #ifndef BASE_METRICS_HISTOGRAM_H_
32 #define BASE_METRICS_HISTOGRAM_H_ 32 #define BASE_METRICS_HISTOGRAM_H_
33 #pragma once 33 #pragma once
34 34
35 #include <map> 35 #include <map>
36 #include <string> 36 #include <string>
37 #include <vector> 37 #include <vector>
38 38
39 #include "base/gtest_prod_util.h" 39 #include "base/gtest_prod_util.h"
40 #include "base/ref_counted.h"
41 #include "base/logging.h" 40 #include "base/logging.h"
41 #include "base/memory/ref_counted.h"
42 #include "base/time.h" 42 #include "base/time.h"
43 43
44 class Pickle; 44 class Pickle;
45 45
46 namespace base { 46 namespace base {
47 47
48 class Lock; 48 class Lock;
49 49
50 //------------------------------------------------------------------------------ 50 //------------------------------------------------------------------------------
51 // Provide easy general purpose histogram in a macro, just like stats counters. 51 // Provide easy general purpose histogram in a macro, just like stats counters.
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 698
699 // Dump all known histograms to log. 699 // Dump all known histograms to log.
700 static bool dump_on_exit_; 700 static bool dump_on_exit_;
701 701
702 DISALLOW_COPY_AND_ASSIGN(StatisticsRecorder); 702 DISALLOW_COPY_AND_ASSIGN(StatisticsRecorder);
703 }; 703 };
704 704
705 } // namespace base 705 } // namespace base
706 706
707 #endif // BASE_METRICS_HISTOGRAM_H_ 707 #endif // BASE_METRICS_HISTOGRAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698