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

Side by Side Diff: src/d8.cc

Issue 1744733002: [Tracing] Remove deprecated AddTraceEvent (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « include/v8-platform.h ('k') | src/libplatform/default-platform.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 // Defined when linking against shared lib on Windows. 6 // Defined when linking against shared lib on Windows.
7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED)
8 #define V8_SHARED 8 #define V8_SHARED
9 #endif 9 #endif
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, 135 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag,
136 const char* name, const char* scope, uint64_t id, 136 const char* name, const char* scope, uint64_t id,
137 uint64_t bind_id, int numArgs, const char** argNames, 137 uint64_t bind_id, int numArgs, const char** argNames,
138 const uint8_t* argTypes, const uint64_t* argValues, 138 const uint8_t* argTypes, const uint64_t* argValues,
139 unsigned int flags) override { 139 unsigned int flags) override {
140 return 0; 140 return 0;
141 } 141 }
142 142
143 // TODO(fmeawad): Remove once all embedders implement the scope version.
144 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag,
145 const char* name, uint64_t id, uint64_t bind_id,
146 int numArgs, const char** argNames,
147 const uint8_t* argTypes, const uint64_t* argValues,
148 unsigned int flags) override {
149 return 0;
150 }
151
152 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, 143 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag,
153 const char* name, uint64_t handle) override {} 144 const char* name, uint64_t handle) override {}
154 145
155 const uint8_t* GetCategoryGroupEnabled(const char* name) override { 146 const uint8_t* GetCategoryGroupEnabled(const char* name) override {
156 static uint8_t no = 0; 147 static uint8_t no = 0;
157 return &no; 148 return &no;
158 } 149 }
159 150
160 const char* GetCategoryGroupName( 151 const char* GetCategoryGroupName(
161 const uint8_t* categoryEnabledFlag) override { 152 const uint8_t* categoryEnabledFlag) override {
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 } 2554 }
2564 2555
2565 } // namespace v8 2556 } // namespace v8
2566 2557
2567 2558
2568 #ifndef GOOGLE3 2559 #ifndef GOOGLE3
2569 int main(int argc, char* argv[]) { 2560 int main(int argc, char* argv[]) {
2570 return v8::Shell::Main(argc, argv); 2561 return v8::Shell::Main(argc, argv);
2571 } 2562 }
2572 #endif 2563 #endif
OLDNEW
« no previous file with comments | « include/v8-platform.h ('k') | src/libplatform/default-platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698