| Index: src/heap-profiler.h
|
| ===================================================================
|
| --- src/heap-profiler.h (revision 7180)
|
| +++ src/heap-profiler.h (working copy)
|
| @@ -68,6 +68,11 @@
|
|
|
| static void ObjectMoveEvent(Address from, Address to);
|
|
|
| + static void DefineWrapperClass(
|
| + uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback);
|
| + static v8::RetainedObjectInfo* ExecuteWrapperClassCallback(uint16_t class_id,
|
| + Object** wrapper);
|
| +
|
| static INLINE(bool is_profiling()) {
|
| return singleton_ != NULL && singleton_->snapshots_->is_tracking_objects();
|
| }
|
| @@ -88,6 +93,7 @@
|
|
|
| HeapSnapshotsCollection* snapshots_;
|
| unsigned next_snapshot_uid_;
|
| + List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_;
|
|
|
| static HeapProfiler* singleton_;
|
| #endif // ENABLE_LOGGING_AND_PROFILING
|
| @@ -340,6 +346,7 @@
|
|
|
|
|
| class HeapEntriesMap;
|
| +class HeapEntriesAllocator;
|
| class HeapSnapshot;
|
|
|
| class AggregatedHeapSnapshotGenerator {
|
| @@ -354,7 +361,8 @@
|
| void CalculateStringsStats();
|
| void CollectStats(HeapObject* obj);
|
| template<class Iterator>
|
| - void IterateRetainers(HeapEntriesMap* entries_map);
|
| + void IterateRetainers(
|
| + HeapEntriesAllocator* allocator, HeapEntriesMap* entries_map);
|
|
|
| AggregatedHeapSnapshot* agg_snapshot_;
|
| };
|
|
|