diff options
Diffstat (limited to 'src/memory_tracker.h')
-rw-r--r-- | src/memory_tracker.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/memory_tracker.h b/src/memory_tracker.h index d22116918a..3bcbe97c99 100644 --- a/src/memory_tracker.h +++ b/src/memory_tracker.h @@ -138,6 +138,10 @@ class MemoryTracker { inline void TrackField(const char* edge_name, const std::unique_ptr<T>& value, const char* node_name = nullptr); + template <typename T> + inline void TrackField(const char* edge_name, + const std::shared_ptr<T>& value, + const char* node_name = nullptr); // For containers, the elements will be graphed as grandchildren nodes // if the container is not empty. @@ -197,6 +201,9 @@ class MemoryTracker { inline void TrackField(const char* edge_name, const MallocedBuffer<T>& value, const char* node_name = nullptr); + inline void TrackField(const char* edge_name, + const v8::BackingStore* value, + const char* node_name = nullptr); // We do not implement CleanupHookCallback as MemoryRetainer // but instead specialize the method here to avoid the cost of // virtual pointers. |