-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix globals, part 6: performance (#33339)
* move * Update package.json * Apply suggestions from code review Co-authored-by: wbamberg <[email protected]> * fix * Update files/en-us/web/api/workerglobalscope/index.md * Update files/en-us/web/api/workerglobalscope/performance/index.md * Update files/en-us/web/api/workerglobalscope/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: wbamberg <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
fb82244
commit 54962bb
Showing
13 changed files
with
103 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "Window: performance property" | ||
short-title: performance | ||
slug: Web/API/Window/performance | ||
page-type: web-api-instance-property | ||
browser-compat: api.performance | ||
--- | ||
|
||
{{APIRef("Performance API")}} | ||
|
||
The **`performance`** property of the {{domxref("Window")}} interface returns a {{domxref("Performance")}} object, which can be used to gather performance information about code running in the window's scope. | ||
|
||
Performance entries are per context. If you create a mark on the main thread (or other worker), you cannot see it in a worker thread, and vice versa. | ||
|
||
## Value | ||
|
||
A {{domxref("Performance")}} object offering access to performance and timing-related information about code running in the window's scope. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("WorkerGlobalScope.performance")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
files/en-us/web/api/workerglobalscope/performance/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "WorkerGlobalScope: performance property" | ||
short-title: performance | ||
slug: Web/API/WorkerGlobalScope/performance | ||
page-type: web-api-instance-property | ||
browser-compat: api.performance | ||
--- | ||
|
||
{{APIRef("Performance API")}} | ||
|
||
The **`performance`** property of the {{domxref("WorkerGlobalScope")}} interface returns a {{domxref("Performance")}} object, which can be used to gather performance information about code running in the worker's scope. | ||
|
||
Performance entries are per context. If you create a mark on a worker thread, you will not see it in the main thread or any other workers. | ||
|
||
Note that only the following performance interfaces are available in worker contexts: | ||
|
||
- {{domxref("Performance")}} | ||
- {{domxref("PerformanceEntry")}} | ||
- {{domxref("PerformanceMark")}} | ||
- {{domxref("PerformanceMeasure")}} | ||
- {{domxref("PerformanceObserver")}} | ||
- {{domxref("PerformanceObserverEntryList")}} | ||
- {{domxref("PerformanceResourceTiming")}} | ||
- {{domxref("PerformanceServerTiming")}} | ||
|
||
## Value | ||
|
||
A {{domxref("Performance")}} object offering access to performance and timing-related information for the context it is called on. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("Window.performance")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters