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

Side by Side Diff: runtime/vm/timeline_macos.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_linux.cc ('k') | runtime/vm/timeline_win.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_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
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)
OLDNEW
« no previous file with comments | « runtime/vm/timeline_linux.cc ('k') | runtime/vm/timeline_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698