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:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-04-29 13:50:51 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2019-05-02 14:48:45 +0300
commit30cceaeccbe6a8c6a58a44ea760188f96951c13e (patch)
tree56141c753a0874152685eb471446e7cf80d9900b /src/node_internals.h
parent6f02f159216f4791e1d397aaddcbdb4dbcfd29d1 (diff)
src: refactor profile initialization
- Process and store --cpu-prof-dir and --cpu-prof-name during Environment creation - Start profilers in one `profiler::StartProfilers()` PR-URL: https://github.com/nodejs/node/pull/27475 Refs: https://github.com/nodejs/node/issues/27421 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 198132d49d6..5e99ac4c66a 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -324,8 +324,7 @@ void SetIsolateCreateParamsForNode(v8::Isolate::CreateParams* params);
#if HAVE_INSPECTOR
namespace profiler {
-void StartCoverageCollection(Environment* env);
-void StartCpuProfiling(Environment* env, const std::string& profile_name);
+void StartProfilers(Environment* env);
void EndStartedProfilers(Environment* env);
}
#endif // HAVE_INSPECTOR