diff --git a/doc/api/process.md b/doc/api/process.md index 888c0af660568c..b3c98e9e3daada 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1400,6 +1400,30 @@ process.kill(process.pid, 'SIGHUP'); When `SIGUSR1` is received by a Node.js process, Node.js will start the debugger. See [Signal Events][]. +## process.LIBUV\_HANDLE\_TYPES + +This object indicates type enums for [libuv handles][] types. + +## process.libuvHandlesCount() + +Get [libuv handles][] count for current tick. + +The returned object contains two fileds: + +```json +{ + total: , + each: [ , , ... ] +} +``` + +You may get type enum via `process.LIBUV_HANDLE_TYPES`. e.g. + +```js +const result = process.libuvHandlesCount(); +result.each[process.LIBUV_HANDLE_TYPES.ASYNC]; // Count of `uv_async_t` +``` + ## process.mainModule