diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-01-29 19:41:26 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-02-03 18:04:13 +0300 |
commit | 875a4d1a58d6dec80518c9d2a05ae6107c70b066 (patch) | |
tree | 5223080453453fe6617e45dcc0df36e44695dab9 /src/node_worker.h | |
parent | f7a1ef6fb51f814223e3c26fffb9d39b08f91b1b (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.h | 1 |
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); |