| 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_LINUX) && !defined(PRODUCT) | 6 #if defined(HOST_OS_LINUX) && !defined(PRODUCT) |
| 7 | 7 |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <cstdlib> | 10 #include <cstdlib> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 TimelineEvent* event, | 138 TimelineEvent* event, |
| 139 int64_t start, | 139 int64_t start, |
| 140 int64_t start_cpu, | 140 int64_t start_cpu, |
| 141 const char* category, | 141 const char* category, |
| 142 const char* name, | 142 const char* name, |
| 143 const char* args) { | 143 const char* args) { |
| 144 DartCommonTimelineEventHelpers::ReportCompleteEvent( | 144 DartCommonTimelineEventHelpers::ReportCompleteEvent( |
| 145 thread, zone, event, start, start_cpu, category, name, args); | 145 thread, zone, event, start, start_cpu, category, name, args); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void DartTimelineEventHelpers::ReportFlowEvent(Thread* thread, |
| 149 Zone* zone, |
| 150 TimelineEvent* event, |
| 151 int64_t start, |
| 152 int64_t start_cpu, |
| 153 const char* category, |
| 154 const char* name, |
| 155 int64_t type, |
| 156 int64_t flow_id, |
| 157 const char* args) { |
| 158 DartCommonTimelineEventHelpers::ReportFlowEvent(thread, zone, event, start, |
| 159 start_cpu, category, name, |
| 160 type, flow_id, args); |
| 161 } |
| 162 |
| 148 void DartTimelineEventHelpers::ReportInstantEvent(Thread* thread, | 163 void DartTimelineEventHelpers::ReportInstantEvent(Thread* thread, |
| 149 Zone* zone, | 164 Zone* zone, |
| 150 TimelineEvent* event, | 165 TimelineEvent* event, |
| 151 int64_t start, | 166 int64_t start, |
| 152 const char* category, | 167 const char* category, |
| 153 const char* name, | 168 const char* name, |
| 154 const char* args) { | 169 const char* args) { |
| 155 DartCommonTimelineEventHelpers::ReportInstantEvent(thread, zone, event, start, | 170 DartCommonTimelineEventHelpers::ReportInstantEvent(thread, zone, event, start, |
| 156 category, name, args); | 171 category, name, args); |
| 157 } | 172 } |
| 158 | 173 |
| 159 } // namespace dart | 174 } // namespace dart |
| 160 | 175 |
| 161 #endif // defined(HOST_OS_LINUX) && !defined(PRODUCT) | 176 #endif // defined(HOST_OS_LINUX) && !defined(PRODUCT) |
| OLD | NEW |