OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project 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 SRC_TRACING_TRACE_EVENT_H_ | 5 #ifndef SRC_TRACING_TRACE_EVENT_H_ |
6 #define SRC_TRACING_TRACE_EVENT_H_ | 6 #define SRC_TRACING_TRACE_EVENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/trace_event/common/trace_event_common.h" | 10 #include "base/trace_event/common/trace_event_common.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 } \ | 273 } \ |
274 \ | 274 \ |
275 private: \ | 275 private: \ |
276 /* Local class friendly DISALLOW_COPY_AND_ASSIGN */ \ | 276 /* Local class friendly DISALLOW_COPY_AND_ASSIGN */ \ |
277 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ | 277 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ |
278 (const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {} \ | 278 (const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {} \ |
279 void operator=(const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {} \ | 279 void operator=(const INTERNAL_TRACE_EVENT_UID(ScopedContext)&) {} \ |
280 uint64_t cid_; \ | 280 uint64_t cid_; \ |
281 }; \ | 281 }; \ |
282 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ | 282 INTERNAL_TRACE_EVENT_UID(ScopedContext) \ |
283 INTERNAL_TRACE_EVENT_UID(scoped_context)(context.raw_id()); | 283 INTERNAL_TRACE_EVENT_UID(scoped_context)(context); |
284 | 284 |
285 #define TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED() \ | 285 #define TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED() \ |
286 base::NoBarrier_Load(&v8::internal::tracing::kRuntimeCallStatsTracingEnabled) | 286 base::NoBarrier_Load(&v8::internal::tracing::kRuntimeCallStatsTracingEnabled) |
287 | 287 |
288 #define TRACE_EVENT_CALL_STATS_SCOPED(isolate, category_group, name) \ | 288 #define TRACE_EVENT_CALL_STATS_SCOPED(isolate, category_group, name) \ |
289 INTERNAL_TRACE_EVENT_CALL_STATS_SCOPED(isolate, category_group, name) | 289 INTERNAL_TRACE_EVENT_CALL_STATS_SCOPED(isolate, category_group, name) |
290 | 290 |
291 #define INTERNAL_TRACE_EVENT_CALL_STATS_SCOPED(isolate, category_group, name) \ | 291 #define INTERNAL_TRACE_EVENT_CALL_STATS_SCOPED(isolate, category_group, name) \ |
292 { \ | 292 { \ |
293 INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO( \ | 293 INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO( \ |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 bool has_parent_scope_; | 641 bool has_parent_scope_; |
642 Data* p_data_; | 642 Data* p_data_; |
643 Data data_; | 643 Data data_; |
644 }; | 644 }; |
645 | 645 |
646 } // namespace tracing | 646 } // namespace tracing |
647 } // namespace internal | 647 } // namespace internal |
648 } // namespace v8 | 648 } // namespace v8 |
649 | 649 |
650 #endif // SRC_TRACING_TRACE_EVENT_H_ | 650 #endif // SRC_TRACING_TRACE_EVENT_H_ |
OLD | NEW |