diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 11795b98dc71fa..3609ddfc042bf0 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -261,6 +261,14 @@ If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported once the finally handler is invoked. +### `performance.toJSON()` + + +An object which is JSON representation of the `performance` object. It +is similar to [`window.performance.toJSON`][] in browsers. + ## Class: `PerformanceEntry`