From eecb7178c7516fa7acaa31ffdbd4824b24e23be8 Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Fri, 17 Nov 2023 22:49:26 +0900 Subject: [PATCH] doc: update print results(detail) in `PerformanceEntry` PR-URL: https://github.com/nodejs/node/pull/50723 Reviewed-By: Luigi Pinca Reviewed-By: Deokjin Kim --- doc/api/perf_hooks.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 8323b9ab03fcd0..040b8eaa52027b 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -1328,13 +1328,15 @@ const obs = new PerformanceObserver((perfObserverList, observer) => { * name: 'test', * entryType: 'mark', * startTime: 81.465639, - * duration: 0 + * duration: 0, + * detail: null * }, * PerformanceEntry { * name: 'meow', * entryType: 'mark', * startTime: 81.860064, - * duration: 0 + * duration: 0, + * detail: null * } * ] */ @@ -1378,7 +1380,8 @@ const obs = new PerformanceObserver((perfObserverList, observer) => { * name: 'meow', * entryType: 'mark', * startTime: 98.545991, - * duration: 0 + * duration: 0, + * detail: null * } * ] */ @@ -1391,7 +1394,8 @@ const obs = new PerformanceObserver((perfObserverList, observer) => { * name: 'test', * entryType: 'mark', * startTime: 63.518931, - * duration: 0 + * duration: 0, + * detail: null * } * ] */ @@ -1434,13 +1438,15 @@ const obs = new PerformanceObserver((perfObserverList, observer) => { * name: 'test', * entryType: 'mark', * startTime: 55.897834, - * duration: 0 + * duration: 0, + * detail: null * }, * PerformanceEntry { * name: 'meow', * entryType: 'mark', * startTime: 56.350146, - * duration: 0 + * duration: 0, + * detail: null * } * ] */