From cb825d08dc28fae3bcc2b790311eca06789f1d47 Mon Sep 17 00:00:00 2001 From: Corentin Pescheloche <89817226+cnpsc@users.noreply.github.com> Date: Thu, 16 Dec 2021 16:34:26 +0100 Subject: [PATCH] Add Profiler Marker to the spec --- index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/index.html b/index.html index 8c82897..89a5ea5 100644 --- a/index.html +++ b/index.html @@ -304,16 +304,29 @@

The ProfilerTrace Dictionary

and Gecko profile format, this representation is designed to be easily and efficiently serializable.

+
+

The ProfilerMarker Enum

+
+          enum ProfilerMarker { 
+            "gc",
+            "layout",
+            "paint",
+            "style"
+          };
+        
+

The ProfilerSample Dictionary

         dictionary ProfilerSample {
           required DOMHighResTimeStamp timestamp;
           unsigned long long stackId;
+          ProfilerMarker? marker;
         };
         

timestamp MUST return the value it was initialized to.

stackId MUST return the value it was initialized to.

+

marker MUST return the value it was initialized to.

The ProfilerStack Dictionary