Skip to content
Open
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
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,29 @@ <h2>The <dfn>ProfilerTrace</dfn> Dictionary</h2>
and <a href="https://github.com/devtools-html/perf.html/blob/master/docs-developer/gecko-profile-format.md">Gecko profile format</a>,
this representation is designed to be easily and efficiently serializable.
</p>
<section data-dfn-for="ProfilerMarker" data-link-for="ProfilerMarker">
<h2>The <dfn>ProfilerMarker</dfn> Enum</h2>
<pre class="idl">
enum ProfilerMarker {
"gc",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is difficult to specify and link gc, layout, paint or style operations back to what is already defined in the html event loop model. I wonder if this marker should be left as a String with language to allow UA's to define their own markers.

"layout",
"paint",
"style"
};
</pre>
</section>
<section data-dfn-for="ProfilerSample" data-link-for="ProfilerSample">
<h2>The <dfn>ProfilerSample</dfn> Dictionary</h2>
<pre class="idl">
dictionary ProfilerSample {
required DOMHighResTimeStamp timestamp;
unsigned long long stackId;
ProfilerMarker? marker;
};
</pre>
<p><dfn>timestamp</dfn> MUST return the value it was initialized to.</p>
<p><dfn>stackId</dfn> MUST return the value it was initialized to.</p>
<p><dfn>marker</dfn> MUST return the value it was initialized to.</p>
</section>
<section data-dfn-for="ProfilerStack" data-link-for="ProfilerStack">
<h2>The <dfn>ProfilerStack</dfn> Dictionary</h2>
Expand Down