Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1343)

Unified Diff: Source/modules/performance/WorkerPerformance.idl

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/performance/WorkerPerformance.idl
diff --git a/Source/modules/performance/WorkerPerformance.idl b/Source/modules/performance/WorkerPerformance.idl
index 8c234d8b83d1451879115261a38ffb807609ea78..9fe5b2953d0c57f9bff5ee3ecd5096857c276a67 100644
--- a/Source/modules/performance/WorkerPerformance.idl
+++ b/Source/modules/performance/WorkerPerformance.idl
@@ -34,5 +34,7 @@
] interface WorkerPerformance {
// See https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime2/Overview.html for details.
[CallWith=ExecutionContext] double now();
+
+ [CallWith=ExecutionContext] readonly attribute MemoryInfo memory;
};

Powered by Google App Engine
This is Rietveld 408576698