OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LOG_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_ |
6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ | 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class TraceBuffer; | 33 class TraceBuffer; |
34 class TraceBufferChunk; | 34 class TraceBufferChunk; |
35 class TraceEvent; | 35 class TraceEvent; |
36 class TraceEventMemoryOverhead; | 36 class TraceEventMemoryOverhead; |
37 class TraceSamplingThread; | 37 class TraceSamplingThread; |
38 | 38 |
39 struct BASE_EXPORT TraceLogStatus { | 39 struct BASE_EXPORT TraceLogStatus { |
40 TraceLogStatus(); | 40 TraceLogStatus(); |
41 ~TraceLogStatus(); | 41 ~TraceLogStatus(); |
42 size_t event_capacity; | 42 uint32_t event_capacity; |
43 size_t event_count; | 43 uint32_t event_count; |
44 }; | 44 }; |
45 | 45 |
46 class BASE_EXPORT TraceLog : public MemoryDumpProvider { | 46 class BASE_EXPORT TraceLog : public MemoryDumpProvider { |
47 public: | 47 public: |
48 enum Mode { | 48 enum Mode { |
49 DISABLED = 0, | 49 DISABLED = 0, |
50 RECORDING_MODE, | 50 RECORDING_MODE, |
51 MONITORING_MODE, | 51 MONITORING_MODE, |
52 }; | 52 }; |
53 | 53 |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 subtle::AtomicWord generation_; | 494 subtle::AtomicWord generation_; |
495 bool use_worker_thread_; | 495 bool use_worker_thread_; |
496 | 496 |
497 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 497 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
498 }; | 498 }; |
499 | 499 |
500 } // namespace trace_event | 500 } // namespace trace_event |
501 } // namespace base | 501 } // namespace base |
502 | 502 |
503 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ | 503 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ |
OLD | NEW |