Skip to content

Commit

Permalink
doc: fix errors in Performance hooks doc
Browse files Browse the repository at this point in the history
PR-URL: #43152
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
  • Loading branch information
y1d7ng authored and juanarbol committed May 31, 2022
1 parent 4b76af1 commit 3f799c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions doc/api/perf_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ added: v16.7.0
* `name` {string}

If `name` is not provided, removes all `PerformanceMeasure` objects from the
Performance Timeline. If `name` is provided, removes only the named mark.
Performance Timeline. If `name` is provided, removes only the named measure.

### `performance.clearResourceTimings([name])`

Expand Down Expand Up @@ -196,7 +196,7 @@ changes:
* `options` {Object}
* `detail` {any} Additional optional detail to include with the mark.
* `startTime` {number} An optional timestamp to be used as the mark time.
**Defaults**: `performance.now()`.
**Default**: `performance.now()`.

Creates a new `PerformanceMark` entry in the Performance Timeline. A
`PerformanceMark` is a subclass of `PerformanceEntry` whose
Expand All @@ -210,9 +210,7 @@ and can be queried with `performance.getEntries`,
observation is performed, the entries should be cleared from the global
Performance Timeline manually with `performance.clearMarks`.

### \`performance.markResourceTiming(timingInfo, requestedUrl, initiatorType,

global, cacheMode)\`
### `performance.markResourceTiming(timingInfo, requestedUrl, initiatorType, global, cacheMode)`

<!-- YAML
added: REPLACEME
Expand Down

0 comments on commit 3f799c4

Please sign in to comment.