diff options
author | Timothy Gu <timothygu99@gmail.com> | 2017-09-25 16:28:55 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-06-06 19:43:48 +0200 |
commit | 8939f36630bd718fc0b0b8557cf7f2ed9ecab312 (patch) | |
tree | a5ec7107f61da344772079b8edd10a50fedf1530 /src/env.h | |
parent | 19dae6bd1940c66105f34b4174a77af2355c9e7f (diff) | |
download | android-node-v8-8939f36630bd718fc0b0b8557cf7f2ed9ecab312.tar.gz android-node-v8-8939f36630bd718fc0b0b8557cf7f2ed9ecab312.tar.bz2 android-node-v8-8939f36630bd718fc0b0b8557cf7f2ed9ecab312.zip |
src: add Env::profiler_idle_notifier_started()
Refs: https://github.com/ayojs/ayo/pull/93
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
PR-URL: https://github.com/nodejs/node/pull/20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -615,6 +615,7 @@ class Environment { void StartProfilerIdleNotifier(); void StopProfilerIdleNotifier(); + inline bool profiler_idle_notifier_started() const; inline v8::Isolate* isolate() const; inline tracing::Agent* tracing_agent() const; @@ -840,6 +841,7 @@ class Environment { uv_idle_t immediate_idle_handle_; uv_prepare_t idle_prepare_handle_; uv_check_t idle_check_handle_; + bool profiler_idle_notifier_started_ = false; AsyncHooks async_hooks_; ImmediateInfo immediate_info_; |