OLD | NEW |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 50 const char* name, const char* scope, uint64_t id, |
51 uint64_t bind_id, int32_t num_args, | 51 uint64_t bind_id, int32_t num_args, |
52 const char** arg_names, const uint8_t* arg_types, | 52 const char** arg_names, const uint8_t* arg_types, |
53 const uint64_t* arg_values, | 53 const uint64_t* arg_values, |
54 unsigned int flags) override; | 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, | |
57 const char* name, uint64_t id, uint64_t bind_id, | |
58 int32_t num_args, const char** arg_names, | |
59 const uint8_t* arg_types, const uint64_t* arg_values, | |
60 unsigned int flags) override; | |
61 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, | 55 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, |
62 const char* name, uint64_t handle) override; | 56 const char* name, uint64_t handle) override; |
63 | 57 |
64 | 58 |
65 private: | 59 private: |
66 static const int kMaxThreadPoolSize; | 60 static const int kMaxThreadPoolSize; |
67 | 61 |
68 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate); | 62 Task* PopTaskInMainThreadQueue(v8::Isolate* isolate); |
69 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate); | 63 Task* PopTaskInMainThreadDelayedQueue(v8::Isolate* isolate); |
70 | 64 |
(...skipping 12 matching lines...) Expand all Loading... |
83 | 77 |
84 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); | 78 DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
85 }; | 79 }; |
86 | 80 |
87 | 81 |
88 } // namespace platform | 82 } // namespace platform |
89 } // namespace v8 | 83 } // namespace v8 |
90 | 84 |
91 | 85 |
92 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ | 86 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ |
OLD | NEW |