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 "content/child/child_histogram_message_filter.h" | 5 #include "content/child/child_histogram_message_filter.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/metrics/histogram_delta_serialization.h" | 11 #include "base/metrics/histogram_delta_serialization.h" |
| 12 #include "base/metrics/histogram_macros.h" |
12 #include "base/metrics/persistent_histogram_allocator.h" | 13 #include "base/metrics/persistent_histogram_allocator.h" |
13 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
14 #include "content/child/child_process.h" | 15 #include "content/child/child_process.h" |
15 #include "content/common/child_process_messages.h" | 16 #include "content/common/child_process_messages.h" |
16 #include "ipc/ipc_sender.h" | 17 #include "ipc/ipc_sender.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 ChildHistogramMessageFilter::ChildHistogramMessageFilter() | 21 ChildHistogramMessageFilter::ChildHistogramMessageFilter() |
21 : sender_(NULL), | 22 : sender_(NULL), |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 new ChildProcessHostMsg_ChildHistogramData(sequence_number, deltas)); | 92 new ChildProcessHostMsg_ChildHistogramData(sequence_number, deltas)); |
92 | 93 |
93 #ifndef NDEBUG | 94 #ifndef NDEBUG |
94 static int count = 0; | 95 static int count = 0; |
95 count++; | 96 count++; |
96 LOCAL_HISTOGRAM_COUNTS("Histogram.ChildProcessHistogramSentCount", count); | 97 LOCAL_HISTOGRAM_COUNTS("Histogram.ChildProcessHistogramSentCount", count); |
97 #endif | 98 #endif |
98 } | 99 } |
99 | 100 |
100 } // namespace content | 101 } // namespace content |
OLD | NEW |