v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
skipping to change at line 181 | skipping to change at line 181 | |||
* other contexts, filtering by security token is performed while | * other contexts, filtering by security token is performed while | |||
* obtaining profiling results. | * obtaining profiling results. | |||
*/ | */ | |||
/** | /** | |||
* Returns the number of profiles collected (doesn't include | * Returns the number of profiles collected (doesn't include | |||
* profiles that are being collected at the moment of call.) | * profiles that are being collected at the moment of call.) | |||
*/ | */ | |||
int GetProfileCount(); | int GetProfileCount(); | |||
/** Deprecated. Use GetCpuProfile with single parameter. */ | ||||
V8_DEPRECATED(const CpuProfile* GetCpuProfile( | ||||
int index, | ||||
Handle<Value> security_token)); | ||||
/** Returns a profile by index. */ | /** Returns a profile by index. */ | |||
const CpuProfile* GetCpuProfile(int index); | const CpuProfile* GetCpuProfile(int index); | |||
/** Returns a profile by uid. */ | ||||
V8_DEPRECATED(const CpuProfile* FindCpuProfile( | ||||
unsigned uid, | ||||
Handle<Value> security_token = Handle<Value>())); | ||||
/** | /** | |||
* Starts collecting CPU profile. Title may be an empty string. It | * Starts collecting CPU profile. Title may be an empty string. It | |||
* is allowed to have several profiles being collected at | * is allowed to have several profiles being collected at | |||
* once. Attempts to start collecting several profiles with the same | * once. Attempts to start collecting several profiles with the same | |||
* title are silently ignored. While collecting a profile, functions | * title are silently ignored. While collecting a profile, functions | |||
* from all security contexts are included in it. The token-based | * from all security contexts are included in it. The token-based | |||
* filtering is only performed when querying for a profile. | * filtering is only performed when querying for a profile. | |||
* | * | |||
* |record_samples| parameter controls whether individual samples should | * |record_samples| parameter controls whether individual samples should | |||
* be recorded in addition to the aggregated tree. | * be recorded in addition to the aggregated tree. | |||
*/ | */ | |||
void StartCpuProfiling(Handle<String> title, bool record_samples = false) ; | void StartCpuProfiling(Handle<String> title, bool record_samples = false) ; | |||
/** | /** | |||
* Deprecated. Use StopCpuProfiling with one parameter instead. | ||||
*/ | ||||
V8_DEPRECATED(const CpuProfile* StopCpuProfiling( | ||||
Handle<String> title, | ||||
Handle<Value> security_token)); | ||||
/** | ||||
* Stops collecting CPU profile with a given title and returns it. | * Stops collecting CPU profile with a given title and returns it. | |||
* If the title given is empty, finishes the last profile started. | * If the title given is empty, finishes the last profile started. | |||
*/ | */ | |||
const CpuProfile* StopCpuProfiling(Handle<String> title); | const CpuProfile* StopCpuProfiling(Handle<String> title); | |||
/** | /** | |||
* Deletes all existing profiles, also cancelling all profiling | * Deletes all existing profiles, also cancelling all profiling | |||
* activity. All previously returned pointers to profiles and their | * activity. All previously returned pointers to profiles and their | |||
* contents become invalid after this call. | * contents become invalid after this call. | |||
*/ | */ | |||
End of changes. 3 change blocks. | ||||
15 lines changed or deleted | 0 lines changed or added | |||
v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 2348 | skipping to change at line 2348 | |||
ScriptOrigin GetScriptOrigin() const; | ScriptOrigin GetScriptOrigin() const; | |||
V8_INLINE(static Function* Cast(Value* obj)); | V8_INLINE(static Function* Cast(Value* obj)); | |||
static const int kLineOffsetNotFound; | static const int kLineOffsetNotFound; | |||
private: | private: | |||
Function(); | Function(); | |||
static void CheckCast(Value* obj); | static void CheckCast(Value* obj); | |||
}; | }; | |||
#ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT | #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT | |||
// The number of required internal fields can be defined by embedder. | ||||
#define V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 2 | #define V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 2 | |||
#endif | #endif | |||
/** | /** | |||
* An instance of the built-in ArrayBuffer constructor (ES6 draft 15.13.5). | * An instance of the built-in ArrayBuffer constructor (ES6 draft 15.13.5). | |||
* This API is experimental and may change significantly. | * This API is experimental and may change significantly. | |||
*/ | */ | |||
class V8EXPORT ArrayBuffer : public Object { | class V8EXPORT ArrayBuffer : public Object { | |||
public: | public: | |||
/** | /** | |||
skipping to change at line 2458 | skipping to change at line 2459 | |||
V8_INLINE(static ArrayBuffer* Cast(Value* obj)); | V8_INLINE(static ArrayBuffer* Cast(Value* obj)); | |||
static const int kInternalFieldCount = V8_ARRAY_BUFFER_INTERNAL_FIELD_COU NT; | static const int kInternalFieldCount = V8_ARRAY_BUFFER_INTERNAL_FIELD_COU NT; | |||
private: | private: | |||
ArrayBuffer(); | ArrayBuffer(); | |||
static void CheckCast(Value* obj); | static void CheckCast(Value* obj); | |||
}; | }; | |||
#ifndef V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT | ||||
// The number of required internal fields can be defined by embedder. | ||||
#define V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT 2 | ||||
#endif | ||||
/** | /** | |||
* A base class for an instance of one of "views" over ArrayBuffer, | * A base class for an instance of one of "views" over ArrayBuffer, | |||
* including TypedArrays and DataView (ES6 draft 15.13). | * including TypedArrays and DataView (ES6 draft 15.13). | |||
* | * | |||
* This API is experimental and may change significantly. | * This API is experimental and may change significantly. | |||
*/ | */ | |||
class V8EXPORT ArrayBufferView : public Object { | class V8EXPORT ArrayBufferView : public Object { | |||
public: | public: | |||
/** | /** | |||
* Returns underlying ArrayBuffer. | * Returns underlying ArrayBuffer. | |||
skipping to change at line 2485 | skipping to change at line 2491 | |||
* Size of a view in bytes. | * Size of a view in bytes. | |||
*/ | */ | |||
size_t ByteLength(); | size_t ByteLength(); | |||
/** | /** | |||
* Base address of a view. | * Base address of a view. | |||
*/ | */ | |||
void* BaseAddress(); | void* BaseAddress(); | |||
V8_INLINE(static ArrayBufferView* Cast(Value* obj)); | V8_INLINE(static ArrayBufferView* Cast(Value* obj)); | |||
static const int kInternalFieldCount = | ||||
V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT; | ||||
private: | private: | |||
ArrayBufferView(); | ArrayBufferView(); | |||
static void CheckCast(Value* obj); | static void CheckCast(Value* obj); | |||
}; | }; | |||
/** | /** | |||
* A base class for an instance of TypedArray series of constructors | * A base class for an instance of TypedArray series of constructors | |||
* (ES6 draft 15.13.6). | * (ES6 draft 15.13.6). | |||
* This API is experimental and may change significantly. | * This API is experimental and may change significantly. | |||
*/ | */ | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 9 lines changed or added | |||