>stopped</code>, return [= a promise rejected with =] an <code>"InvalidStateError"</code> DOMException.
          <li>Set the [= profiling session =]'s state to <code>stopped</code>.</li>
          <li>Let |p:Promise| be [= a new promise =].</li>
          <li>
            Run the following steps [= in parallel =]:
            <ol>
              <li>Perform any [= implementation-defined =] work to stop the [= profiling session =].</li>
              <li>Resolve |p| with the {{ProfilerTrace}} associated with