Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix errors in Performance hooks doc #43152

Merged
merged 1 commit into from
May 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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