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

Side by Side Diff: src/libplatform/default-platform.h

Issue 1704253002: Reland: Add Scoped Context Info (Isolate) to V8 Traces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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/d8.cc ('k') | src/libplatform/default-platform.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 5 #ifndef V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 6 #define V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
7 7
8 #include <functional> 8 #include <functional>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 29 matching lines...) Expand all
40 void CallOnForegroundThread(v8::Isolate* isolate, Task* task) override; 40 void CallOnForegroundThread(v8::Isolate* isolate, Task* task) override;
41 void CallDelayedOnForegroundThread(Isolate* isolate, Task* task, 41 void CallDelayedOnForegroundThread(Isolate* isolate, Task* task,
42 double delay_in_seconds) override; 42 double delay_in_seconds) override;
43 void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override; 43 void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override;
44 bool IdleTasksEnabled(Isolate* isolate) override; 44 bool IdleTasksEnabled(Isolate* isolate) override;
45 double MonotonicallyIncreasingTime() override; 45 double MonotonicallyIncreasingTime() override;
46 const uint8_t* GetCategoryGroupEnabled(const char* name) override; 46 const uint8_t* GetCategoryGroupEnabled(const char* name) override;
47 const char* GetCategoryGroupName( 47 const char* GetCategoryGroupName(
48 const uint8_t* category_enabled_flag) override; 48 const uint8_t* category_enabled_flag) override;
49 uint64_t AddTraceEvent(char phase, const uint8_t* category_enabled_flag, 49 uint64_t AddTraceEvent(char phase, const uint8_t* category_enabled_flag,
50 const char* name, const char* scope, uint64_t id,
51 uint64_t bind_id, int32_t num_args,
52 const char** arg_names, const uint8_t* arg_types,
53 const uint64_t* arg_values,
54 unsigned int flags) override;
55 // TODO(fmeawad): Remove once all embedders implement the scope version.
56 uint64_t AddTraceEvent(char phase, const uint8_t* category_enabled_flag,
50 const char* name, uint64_t id, uint64_t bind_id, 57 const char* name, uint64_t id, uint64_t bind_id,
51 int32_t num_args, const char** arg_names, 58 int32_t num_args, const char** arg_names,
52 const uint8_t* arg_types, const uint64_t* arg_values, 59 const uint8_t* arg_types, const uint64_t* arg_values,
53 unsigned int flags) override; 60 unsigned int flags) override;
54 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, 61 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag,
55 const char* name, uint64_t handle) override; 62 const char* name, uint64_t handle) override;
56 63
57 64
58 private: 65 private:
59 static const int kMaxThreadPoolSize; 66 static const int kMaxThreadPoolSize;
(...skipping 16 matching lines...) Expand all
76 83
77 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); 84 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform);
78 }; 85 };
79 86
80 87
81 } // namespace platform 88 } // namespace platform
82 } // namespace v8 89 } // namespace v8
83 90
84 91
85 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ 92 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/libplatform/default-platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698