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>2020-06-09 16:18:25 +0300
committergengjiawen <technicalcute@gmail.com>2020-10-22 13:53:36 +0300
commit7945a2cdc34623234037dfaccef56c257da68d13 (patch)
tree8030f573c3e83f0da49e0a00e36763c1f7aa2d18 /src/inspector_profiler.h
parentfc5636e1eb45949e764f3b1ffbd63e39b2ca30a9 (diff)
v8: implement v8.stopCoverage()
Add a v8.stopCoverage() API to stop the coverage collection started by NODE_V8_COVERAGE - this would be useful in conjunction with v8.takeCoverage() if the user don't want to emit the coverage at the process exit but still want to collect it on demand at some point. PR-URL: https://github.com/nodejs/node/pull/33807 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ben Coe <bencoe@gmail.com>
Diffstat (limited to 'src/inspector_profiler.h')
-rw-r--r--src/inspector_profiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inspector_profiler.h b/src/inspector_profiler.h
index 5e861dd0ea0..be74153b0c3 100644
--- a/src/inspector_profiler.h
+++ b/src/inspector_profiler.h
@@ -95,6 +95,7 @@ class V8CoverageConnection : public V8ProfilerConnection {
void WriteProfile(v8::Local<v8::Object> result) override;
void WriteSourceMapCache();
void TakeCoverage();
+ void StopCoverage();
private:
std::unique_ptr<inspector::InspectorSession> session_;