diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-23 06:47:28 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-05-26 23:18:00 +0300 |
commit | 4b74dae6b2601ee8be3b16fed48986f1be49f20a (patch) | |
tree | d9dde6a3876ade51a6857cf46b242ea59ce9e5ef /src/node_options.h | |
parent | e2c0c0c68074c539ae2ae30debdeafb9f94d989b (diff) |
inspector: implement --heap-prof
In addition implements --heap-prof-name, --heap-prof-dir and
--heap-prof-interval.
These flags are similar to --cpu-prof flags but they are meant
for the V8 sampling heap profiler instead of the CPU profiler.
PR-URL: https://github.com/nodejs/node/pull/27596
Fixes: https://github.com/nodejs/node/issues/27421
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_options.h')
-rw-r--r-- | src/node_options.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_options.h b/src/node_options.h index e84719b6c7e..6b4eb89a969 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -115,6 +115,11 @@ class EnvironmentOptions : public Options { uint64_t cpu_prof_interval = kDefaultCpuProfInterval; std::string cpu_prof_name; bool cpu_prof = false; + std::string heap_prof_dir; + std::string heap_prof_name; + static const uint64_t kDefaultHeapProfInterval = 512 * 1024; + uint64_t heap_prof_interval = kDefaultHeapProfInterval; + bool heap_prof = false; #endif // HAVE_INSPECTOR std::string redirect_warnings; bool throw_deprecation = false; |