Permalink
Browse files

define PerformanceObserver#takeRecords() (#98)

* define PerformanceObserver#takeRecords()

Closes #74.
  • Loading branch information...
igrigorik committed Jan 10, 2018
1 parent 43cf7a3 commit aecfdf45547855df9d4d7d33d30aaa9ffc1a9781
Showing with 8 additions and 1 deletion.
  1. +8 −1 index.html
View
@@ -295,7 +295,7 @@ <h2>The <dfn>PerformanceObserver</dfn> interface</h2>
<p>Each <a>PerformanceObserver</a> has these associated concepts:</p>
<ul>
<li>A <dfn>PerformanceObserverCallback</dfn> set on creation.</li>
<li>A list of <a>PerformanceEntry</a> objects called the <dfn>observer
<li> A <a>PerformanceEntryList</a> object called the <dfn>observer
buffer</dfn> that is initially empty.
</li>
</ul>
@@ -312,6 +312,7 @@ <h2>The <dfn>PerformanceObserver</dfn> interface</h2>
interface PerformanceObserver {
void observe (PerformanceObserverInit options);
void disconnect ();
PerformanceEntryList takeRecords();
};
</pre>
<p class="note">To keep the performance overhead to minimum the
@@ -416,6 +417,12 @@ <h2><dfn>getEntriesByName()</dfn> method</h2>
</section>
</section>
</section>
<section>
<h2><dfn>takeRecords()</dfn> method</h2>
<p>The <a>takeRecords()</a> method must return a copy of the
<a>context object</a>'s <a>observer buffer</a>, and also empty
<a>context object</a>'s <a>observer buffer</a>.</p>
</section>
<section>
<h2><dfn>disconnect()</dfn> method</h2>
<p>The <a>disconnect()</a> method must remove the <a>context object</a>

0 comments on commit aecfdf4

Please sign in to comment.