v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
skipping to change at line 469 | skipping to change at line 469 | |||
/** Returns whether two instances are equivalent. */ | /** Returns whether two instances are equivalent. */ | |||
virtual bool IsEquivalent(RetainedObjectInfo* other) = 0; | virtual bool IsEquivalent(RetainedObjectInfo* other) = 0; | |||
/** | /** | |||
* Returns hash value for the instance. Equivalent instances | * Returns hash value for the instance. Equivalent instances | |||
* must have the same hash value. | * must have the same hash value. | |||
*/ | */ | |||
virtual intptr_t GetHash() = 0; | virtual intptr_t GetHash() = 0; | |||
/** | /** | |||
* Returns human-readable label. It must be a NUL-terminated UTF-8 | * Returns human-readable label. It must be a null-terminated UTF-8 | |||
* encoded string. V8 copies its contents during a call to GetLabel. | * encoded string. V8 copies its contents during a call to GetLabel. | |||
*/ | */ | |||
virtual const char* GetLabel() = 0; | virtual const char* GetLabel() = 0; | |||
/** | /** | |||
* Returns human-readable group label. It must be a null-terminated UTF-8 | ||||
* encoded string. V8 copies its contents during a call to GetGroupLabel. | ||||
* Heap snapshot generator will collect all the group names, create | ||||
* top level entries with these names and attach the objects to the | ||||
* corresponding top level group objects. There is a default | ||||
* implementation which is required because embedders don't have their | ||||
* own implementation yet. | ||||
*/ | ||||
virtual const char* GetGroupLabel() { return GetLabel(); } | ||||
/** | ||||
* Returns element count in case if a global handle retains | * Returns element count in case if a global handle retains | |||
* a subgraph by holding one of its nodes. | * a subgraph by holding one of its nodes. | |||
*/ | */ | |||
virtual intptr_t GetElementCount() { return -1; } | virtual intptr_t GetElementCount() { return -1; } | |||
/** Returns embedder's object size in bytes. */ | /** Returns embedder's object size in bytes. */ | |||
virtual intptr_t GetSizeInBytes() { return -1; } | virtual intptr_t GetSizeInBytes() { return -1; } | |||
protected: | protected: | |||
RetainedObjectInfo() {} | RetainedObjectInfo() {} | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 12 lines changed or added | |||