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 <[email protected]>
Reviewed-By: Zeyu "Alex" Yang <[email protected]>
  • Loading branch information
y1d7ng authored and Trott committed May 20, 2022
1 parent f7d55b9 commit 38f4810
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: v18.2.0
Expand Down

0 comments on commit 38f4810

Please sign in to comment.