Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Side by Side Diff: runtime/vm/timeline_linux.cc

Issue 2985253002: [corelib] dart:developer timeline flow events (Closed)
Patch Set: Update changelog Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/timeline_fuchsia.cc ('k') | runtime/vm/timeline_macos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « runtime/vm/timeline_fuchsia.cc ('k') | runtime/vm/timeline_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698