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

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

Issue 1584003002: Re-enable Dart_Api Timeline tracing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | runtime/vm/timeline.h » ('j') | runtime/vm/timeline.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 71
72 const char* CanonicalFunction(const char* func) { 72 const char* CanonicalFunction(const char* func) {
73 if (strncmp(func, "dart::", 6) == 0) { 73 if (strncmp(func, "dart::", 6) == 0) {
74 return func + 6; 74 return func + 6;
75 } else { 75 } else {
76 return func; 76 return func;
77 } 77 }
78 } 78 }
79 79
80 #if 0 80 #if 1
Florian Schneider 2016/01/15 15:48:26 Remove the #if statement?
Cutch 2016/01/15 17:35:49 Done.
81 #define API_TIMELINE_DURATION \ 81 #define API_TIMELINE_DURATION \
82 TimelineDurationScope tds(Thread::Current(), \ 82 TimelineDurationScope tds(Thread::Current(), \
83 Timeline::GetVMApiStream(), \ 83 Timeline::GetVMApiStream(), \
84 CURRENT_FUNC) 84 CURRENT_FUNC)
85 85
86 #define API_TIMELINE_BEGIN_END \ 86 #define API_TIMELINE_BEGIN_END \
87 TimelineBeginEndScope tbes(Thread::Current(), \ 87 TimelineBeginEndScope tbes(Thread::Current(), \
88 Timeline::GetVMApiStream(), \ 88 Timeline::GetVMApiStream(), \
89 CURRENT_FUNC) 89 CURRENT_FUNC)
90 #else 90 #else
(...skipping 5887 matching lines...) Expand 10 before | Expand all | Expand 10 after
5978 return Api::Success(); 5978 return Api::Success();
5979 } 5979 }
5980 #endif // DART_PRECOMPILED 5980 #endif // DART_PRECOMPILED
5981 5981
5982 5982
5983 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { 5983 DART_EXPORT bool Dart_IsRunningPrecompiledCode() {
5984 return Dart::IsRunningPrecompiledCode(); 5984 return Dart::IsRunningPrecompiledCode();
5985 } 5985 }
5986 5986
5987 } // namespace dart 5987 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/timeline.h » ('j') | runtime/vm/timeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698