ample</dfn> given a <a>profiling session</a>, perform the following steps:
      </p>
      <ol>
        <li>If the length of <a>ProfilerTrace.samples</a> is greater than or equal to the <a>sample buffer size limit</a> associated with the profiling session, fire a new event of type <dfn>samplebufferfull</dfn> to the associated <a>Profiler</a>, move the state to <code>stopped</code>, and return.</li>
        <li>Let <var>sample</var> be a new <a>ProfilerSample</a>.</li>
        <li>Set the <a>ProfilerSample.