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_V8_PLATFORM_H_ | 5 #ifndef V8_V8_PLATFORM_H_ |
6 #define V8_V8_PLATFORM_H_ | 6 #define V8_V8_PLATFORM_H_ |
7 | 7 |
8 #include <stdint.h> | |
9 | |
8 namespace v8 { | 10 namespace v8 { |
9 | 11 |
10 class Isolate; | 12 class Isolate; |
11 | 13 |
12 /** | 14 /** |
13 * A Task represents a unit of work. | 15 * A Task represents a unit of work. |
14 */ | 16 */ |
15 class Task { | 17 class Task { |
16 public: | 18 public: |
17 virtual ~Task() {} | 19 virtual ~Task() {} |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 } | 102 } |
101 | 103 |
102 /** | 104 /** |
103 * Monotonically increasing time in seconds from an arbitrary fixed point in | 105 * Monotonically increasing time in seconds from an arbitrary fixed point in |
104 * the past. This function is expected to return at least | 106 * the past. This function is expected to return at least |
105 * millisecond-precision values. For this reason, | 107 * millisecond-precision values. For this reason, |
106 * it is recommended that the fixed point be no further in the past than | 108 * it is recommended that the fixed point be no further in the past than |
107 * the epoch. | 109 * the epoch. |
108 **/ | 110 **/ |
109 virtual double MonotonicallyIncreasingTime() = 0; | 111 virtual double MonotonicallyIncreasingTime() = 0; |
112 | |
113 virtual const uint8_t* GetCategoryGroupEnabled(const char* name) = 0; | |
114 virtual const char* GetCategoryGroupName( | |
115 const uint8_t* categoryEnabledFlag) = 0; | |
116 | |
117 virtual uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, | |
118 const char* name, uint64_t id, | |
119 uint64_t context_id, uint64_t bind_id, | |
120 int32_t numArgs, const char** argNames, | |
121 const uint8_t* argTypes, | |
122 const uint64_t* argValues, | |
123 unsigned int flags) = 0; | |
124 | |
125 virtual void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, | |
126 const char* name, uint64_t handle) = 0; | |
noordhuis
2015/10/07 18:31:54
These really need elucidating comments, either inl
fmeawad
2015/11/19 02:00:46
Done
| |
110 }; | 127 }; |
111 | 128 |
112 } // namespace v8 | 129 } // namespace v8 |
113 | 130 |
114 #endif // V8_V8_PLATFORM_H_ | 131 #endif // V8_V8_PLATFORM_H_ |
OLD | NEW |