diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-23 02:39:52 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-06 07:01:45 +0300 |
commit | 864860e9f3d4eed0b0b81af55197d7e525ea6306 (patch) | |
tree | ed0c9cbc1cea99323cd4fa4c5385a11b262be8ee /src/node_file.h | |
parent | baa54a5ae78ff04a3e8d8ac97c052304a6f6c18c (diff) |
src: port coverage serialization to C++
This patch moves the serialization of coverage profiles into
C++. With this we no longer need to patch `process.reallyExit`
and hook into the exit events, but instead hook into relevant
places in C++ which are safe from user manipulation. This also
makes the code easier to reuse for other types of profiles.
PR-URL: https://github.com/nodejs/node/pull/26874
Reviewed-By: Ben Coe <bencoe@gmail.com>
Diffstat (limited to 'src/node_file.h')
-rw-r--r-- | src/node_file.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_file.h b/src/node_file.h index 746967f364c..2c87f5e44d0 100644 --- a/src/node_file.h +++ b/src/node_file.h @@ -467,6 +467,11 @@ class FileHandle : public AsyncWrap, public StreamBase { std::unique_ptr<FileHandleReadWrap> current_read_ = nullptr; }; +int MKDirpSync(uv_loop_t* loop, + uv_fs_t* req, + const std::string& path, + int mode, + uv_fs_cb cb = nullptr); } // namespace fs } // namespace node |