Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-01-29 19:41:26 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-02-17 23:04:29 +0300
commit8d3ffbeb55146633fee367820c39949b4e854c36 (patch)
tree0f61570c40e40a56c9278a8dc46bb6cbfec8190c /src/node_worker.h
parent6fe8eda3ca63fea86825ec365bb1a942718657b3 (diff)
worker: add ability to take heap snapshot from parent thread
PR-URL: https://github.com/nodejs/node/pull/31569 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_worker.h')
-rw-r--r--src/node_worker.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_worker.h b/src/node_worker.h
index f84362f35c1..893e03db53f 100644
--- a/src/node_worker.h
+++ b/src/node_worker.h
@@ -59,6 +59,7 @@ class Worker : public AsyncWrap {
static void GetResourceLimits(
const v8::FunctionCallbackInfo<v8::Value>& args);
v8::Local<v8::Float64Array> GetResourceLimits(v8::Isolate* isolate) const;
+ static void TakeHeapSnapshot(const v8::FunctionCallbackInfo<v8::Value>& args);
private:
void CreateEnvMessagePort(Environment* env);