| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(HOST_OS_MACOS) && !defined(PRODUCT) | 6 #if defined(HOST_OS_MACOS) && !defined(PRODUCT) |
| 7 | 7 |
| 8 #include "vm/timeline.h" | 8 #include "vm/timeline.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 TimelineEvent* event, | 64 TimelineEvent* event, |
| 65 int64_t start, | 65 int64_t start, |
| 66 int64_t start_cpu, | 66 int64_t start_cpu, |
| 67 const char* category, | 67 const char* category, |
| 68 const char* name, | 68 const char* name, |
| 69 const char* args) { | 69 const char* args) { |
| 70 DartCommonTimelineEventHelpers::ReportCompleteEvent( | 70 DartCommonTimelineEventHelpers::ReportCompleteEvent( |
| 71 thread, zone, event, start, start_cpu, category, name, args); | 71 thread, zone, event, start, start_cpu, category, name, args); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void DartTimelineEventHelpers::ReportFlowEvent(Thread* thread, |
| 75 Zone* zone, |
| 76 TimelineEvent* event, |
| 77 int64_t start, |
| 78 int64_t start_cpu, |
| 79 const char* category, |
| 80 const char* name, |
| 81 int64_t type, |
| 82 int64_t flow_id, |
| 83 const char* args) { |
| 84 DartCommonTimelineEventHelpers::ReportFlowEvent(thread, zone, event, start, |
| 85 start_cpu, category, name, |
| 86 type, flow_id, args); |
| 87 } |
| 88 |
| 74 void DartTimelineEventHelpers::ReportInstantEvent(Thread* thread, | 89 void DartTimelineEventHelpers::ReportInstantEvent(Thread* thread, |
| 75 Zone* zone, | 90 Zone* zone, |
| 76 TimelineEvent* event, | 91 TimelineEvent* event, |
| 77 int64_t start, | 92 int64_t start, |
| 78 const char* category, | 93 const char* category, |
| 79 const char* name, | 94 const char* name, |
| 80 const char* args) { | 95 const char* args) { |
| 81 DartCommonTimelineEventHelpers::ReportInstantEvent(thread, zone, event, start, | 96 DartCommonTimelineEventHelpers::ReportInstantEvent(thread, zone, event, start, |
| 82 category, name, args); | 97 category, name, args); |
| 83 } | 98 } |
| 84 | 99 |
| 85 } // namespace dart | 100 } // namespace dart |
| 86 | 101 |
| 87 #endif // defined(HOST_OS_MACOS) && !defined(PRODUCT) | 102 #endif // defined(HOST_OS_MACOS) && !defined(PRODUCT) |
| OLD | NEW |