From 266a7e62585b975f2ea2d25473b21395f5ca5a3f Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 11 Jul 2018 00:59:53 +0200 Subject: src: use V8 graph heap snapshot API Transition to a newer, more flexible API for heap snapshot creation. This addresses a currently pending deprecation in the V8 API. PR-URL: https://github.com/nodejs/node/pull/21741 Fixes: https://github.com/nodejs/node/issues/21633 Reviewed-By: James M Snell Reviewed-By: Joyee Cheung Reviewed-By: Refael Ackermann --- src/env.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/env.h') diff --git a/src/env.h b/src/env.h index 9bdf33bce0..120048fe00 100644 --- a/src/env.h +++ b/src/env.h @@ -861,6 +861,10 @@ class Environment { inline void RemoveCleanupHook(void (*fn)(void*), void* arg); void RunCleanup(); + static void BuildEmbedderGraph(v8::Isolate* isolate, + v8::EmbedderGraph* graph, + void* data); + private: inline void CreateImmediate(native_immediate_callback cb, void* data, -- cgit v1.2.3