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

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, 7 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 7942a5481a0b0474041aa6b5ddbcf09d43bdfacf..df38289d8bb10fcc284cd8a50816e8d6ebfa8655 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();
+
+ [RuntimeEnabled=MemoryInfoInWorkers] readonly attribute MemoryInfo memory;
};

Powered by Google App Engine
This is Rietveld 408576698