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

Side by Side Diff: src/d8.cc

Issue 1686233002: Add Scoped Context Info (Isolate) to V8 Traces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Simplify the test Created 4 years, 10 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 | « src/api.cc ('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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 UNREACHABLE(); 130 UNREACHABLE();
131 } 131 }
132 132
133 bool IdleTasksEnabled(v8::Isolate* isolate) override { return false; } 133 bool IdleTasksEnabled(v8::Isolate* isolate) override { return false; }
134 134
135 double MonotonicallyIncreasingTime() override { 135 double MonotonicallyIncreasingTime() override {
136 return synthetic_time_in_sec_ += 0.00001; 136 return synthetic_time_in_sec_ += 0.00001;
137 } 137 }
138 138
139 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, 139 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag,
140 const char* name, uint64_t id, uint64_t bind_id, 140 const char* name, const char* scope, uint64_t id,
141 int numArgs, const char** argNames, 141 uint64_t bind_id, int numArgs, const char** argNames,
142 const uint8_t* argTypes, const uint64_t* argValues, 142 const uint8_t* argTypes, const uint64_t* argValues,
143 unsigned int flags) override { 143 unsigned int flags) override {
144 return 0; 144 return 0;
145 } 145 }
146 146
147 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, 147 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag,
148 const char* name, uint64_t handle) override {} 148 const char* name, uint64_t handle) override {}
149 149
150 const uint8_t* GetCategoryGroupEnabled(const char* name) override { 150 const uint8_t* GetCategoryGroupEnabled(const char* name) override {
151 static uint8_t no = 0; 151 static uint8_t no = 0;
(...skipping 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 } 2563 }
2564 2564
2565 } // namespace v8 2565 } // namespace v8
2566 2566
2567 2567
2568 #ifndef GOOGLE3 2568 #ifndef GOOGLE3
2569 int main(int argc, char* argv[]) { 2569 int main(int argc, char* argv[]) {
2570 return v8::Shell::Main(argc, argv); 2570 return v8::Shell::Main(argc, argv);
2571 } 2571 }
2572 #endif 2572 #endif
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/libplatform/default-platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698