v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 2709 | skipping to change at line 2709 | |||
* Collection of V8 heap information. | * Collection of V8 heap information. | |||
* | * | |||
* Instances of this class can be passed to v8::V8::HeapStatistics to | * Instances of this class can be passed to v8::V8::HeapStatistics to | |||
* get heap statistics from V8. | * get heap statistics from V8. | |||
*/ | */ | |||
class V8EXPORT HeapStatistics { | class V8EXPORT HeapStatistics { | |||
public: | public: | |||
HeapStatistics(); | HeapStatistics(); | |||
size_t total_heap_size() { return total_heap_size_; } | size_t total_heap_size() { return total_heap_size_; } | |||
size_t total_heap_size_executable() { return total_heap_size_executable_; } | size_t total_heap_size_executable() { return total_heap_size_executable_; } | |||
size_t total_physical_size() { return total_physical_size_; } | ||||
size_t used_heap_size() { return used_heap_size_; } | size_t used_heap_size() { return used_heap_size_; } | |||
size_t heap_size_limit() { return heap_size_limit_; } | size_t heap_size_limit() { return heap_size_limit_; } | |||
private: | private: | |||
void set_total_heap_size(size_t size) { total_heap_size_ = size; } | void set_total_heap_size(size_t size) { total_heap_size_ = size; } | |||
void set_total_heap_size_executable(size_t size) { | void set_total_heap_size_executable(size_t size) { | |||
total_heap_size_executable_ = size; | total_heap_size_executable_ = size; | |||
} | } | |||
void set_total_physical_size(size_t size) { | ||||
total_physical_size_ = size; | ||||
} | ||||
void set_used_heap_size(size_t size) { used_heap_size_ = size; } | void set_used_heap_size(size_t size) { used_heap_size_ = size; } | |||
void set_heap_size_limit(size_t size) { heap_size_limit_ = size; } | void set_heap_size_limit(size_t size) { heap_size_limit_ = size; } | |||
size_t total_heap_size_; | size_t total_heap_size_; | |||
size_t total_heap_size_executable_; | size_t total_heap_size_executable_; | |||
size_t total_physical_size_; | ||||
size_t used_heap_size_; | size_t used_heap_size_; | |||
size_t heap_size_limit_; | size_t heap_size_limit_; | |||
friend class V8; | friend class V8; | |||
}; | }; | |||
class RetainedObjectInfo; | class RetainedObjectInfo; | |||
/** | /** | |||
* Isolate represents an isolated instance of the V8 engine. V8 | * Isolate represents an isolated instance of the V8 engine. V8 | |||
skipping to change at line 3027 | skipping to change at line 3032 | |||
static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorith m(); | static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorith m(); | |||
static int GetCompressedStartupDataCount(); | static int GetCompressedStartupDataCount(); | |||
static void GetCompressedStartupData(StartupData* compressed_data); | static void GetCompressedStartupData(StartupData* compressed_data); | |||
static void SetDecompressedStartupData(StartupData* decompressed_data); | static void SetDecompressedStartupData(StartupData* decompressed_data); | |||
/** | /** | |||
* Adds a message listener. | * Adds a message listener. | |||
* | * | |||
* The same message listener can be added more than once and in that | * The same message listener can be added more than once and in that | |||
* case it will be called more than once for each message. | * case it will be called more than once for each message. | |||
* | ||||
* If data is specified, it will be passed to the callback when it is cal | ||||
led. | ||||
* Otherwise, the exception object will be passed to the callback instead | ||||
. | ||||
*/ | */ | |||
static bool AddMessageListener(MessageCallback that, | static bool AddMessageListener(MessageCallback that); | |||
Handle<Value> data = Handle<Value>()); | ||||
/** | /** | |||
* Remove all message listeners from the specified callback function. | * Remove all message listeners from the specified callback function. | |||
*/ | */ | |||
static void RemoveMessageListeners(MessageCallback that); | static void RemoveMessageListeners(MessageCallback that); | |||
/** | /** | |||
* Tells V8 to capture current stack trace when uncaught exception occurs | * Tells V8 to capture current stack trace when uncaught exception occurs | |||
* and report it to the message listeners. The option is off by default. | * and report it to the message listeners. The option is off by default. | |||
*/ | */ | |||
End of changes. 5 change blocks. | ||||
7 lines changed or deleted | 6 lines changed or added | |||