| 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 #include "base/trace_event/trace_sampling_thread.h" | 5 #include <stddef.h> |
| 6 |
| 6 #include "base/trace_event/trace_event_impl.h" | 7 #include "base/trace_event/trace_event_impl.h" |
| 7 #include "base/trace_event/trace_log.h" | 8 #include "base/trace_event/trace_log.h" |
| 9 #include "base/trace_event/trace_sampling_thread.h" |
| 8 | 10 |
| 9 namespace base { | 11 namespace base { |
| 10 namespace trace_event { | 12 namespace trace_event { |
| 11 | 13 |
| 12 class TraceBucketData { | 14 class TraceBucketData { |
| 13 public: | 15 public: |
| 14 TraceBucketData(base::subtle::AtomicWord* bucket, | 16 TraceBucketData(base::subtle::AtomicWord* bucket, |
| 15 const char* name, | 17 const char* name, |
| 16 TraceSampleCallback callback); | 18 TraceSampleCallback callback); |
| 17 ~TraceBucketData(); | 19 ~TraceBucketData(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 94 |
| 93 TraceBucketData::TraceBucketData(base::subtle::AtomicWord* bucket, | 95 TraceBucketData::TraceBucketData(base::subtle::AtomicWord* bucket, |
| 94 const char* name, | 96 const char* name, |
| 95 TraceSampleCallback callback) | 97 TraceSampleCallback callback) |
| 96 : bucket(bucket), bucket_name(name), callback(callback) {} | 98 : bucket(bucket), bucket_name(name), callback(callback) {} |
| 97 | 99 |
| 98 TraceBucketData::~TraceBucketData() {} | 100 TraceBucketData::~TraceBucketData() {} |
| 99 | 101 |
| 100 } // namespace trace_event | 102 } // namespace trace_event |
| 101 } // namespace base | 103 } // namespace base |
| OLD | NEW |