OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_SYSTEM_STATS_MONITOR_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_SYSTEM_STATS_MONITOR_H_ |
6 #define BASE_TRACE_EVENT_TRACE_EVENT_SYSTEM_STATS_MONITOR_H_ | 6 #define BASE_TRACE_EVENT_TRACE_EVENT_SYSTEM_STATS_MONITOR_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "base/process/process_metrics.h" | 13 #include "base/process/process_metrics.h" |
13 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
14 #include "base/trace_event/trace_log.h" | 15 #include "base/trace_event/trace_log.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 | 18 |
18 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
19 | 20 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Converts system memory profiling stats in |input| to | 67 // Converts system memory profiling stats in |input| to |
67 // trace event compatible JSON and appends to |output|. Visible for testing. | 68 // trace event compatible JSON and appends to |output|. Visible for testing. |
68 BASE_EXPORT void AppendSystemProfileAsTraceFormat(const SystemMetrics& | 69 BASE_EXPORT void AppendSystemProfileAsTraceFormat(const SystemMetrics& |
69 system_stats, | 70 system_stats, |
70 std::string* output); | 71 std::string* output); |
71 | 72 |
72 } // namespace trace_event | 73 } // namespace trace_event |
73 } // namespace base | 74 } // namespace base |
74 | 75 |
75 #endif // BASE_TRACE_EVENT_TRACE_EVENT_SYSTEM_STATS_MONITOR_H_ | 76 #endif // BASE_TRACE_EVENT_TRACE_EVENT_SYSTEM_STATS_MONITOR_H_ |
OLD | NEW |