Remove references to console.timeline() and console.timelineEnd()

As of Chromium commit d10b46a[0], `console.timeline()` and
`console.timelineEnd()` no longer start and stop a timeline recording. Instead,
they merely delegate to `console.time()` / `console.timeEnd()` and emit a
deprecation notice. So remove references to this API in the documentation.

  [0]: https://chromium.googlesource.com/chromium/src/+/d10b46a
This commit is contained in:
Ori Livneh 2015-02-13 13:45:24 -08:00
Родитель 4665c76887
Коммит e9beb8216a
2 изменённых файлов: 0 добавлений и 23 удалений

Просмотреть файл

@ -235,16 +235,6 @@ Stops the timer with the specified label and prints the elapsed time.
For example usage, see [console.time()](#consoletimelabel).
## console.timeline(label)
Starts a Timeline recording with an optional label.
## console.timelineEnd()
Stops the Timeline recording if one is in progress.
## console.timeStamp([label]) ##
This method adds an event to the Timeline during a recording session. This lets you visually correlate your code generated time stamp to other events, such as screen layout and paints, that are automatically added to the Timeline.

Просмотреть файл

@ -94,19 +94,6 @@
<img src="cpu-profiling-files/flamechart02.png">
</div>
<p>You may even want to do a Timeline recording simultaneously while you do a recording with the JavaScript Profiler. Heres a snippet you can use to do this:</p>
<pre class="prettyprint">
<code>(function() {
console.timeline();
console.profile();
setTimeout(function() {
console.timelineEnd();
console.profileEnd();
}, 3000);
})();</code></pre>
<p class="note"><strong>Note</strong>: The horizontal axis is time and vertical axis is the call stack. Expensive functions are wide. Call stacks are represented on the Y axis, so a tall flame is not necessarily significant. Pay close attention to wide bars, no matter their position in the call stack.</p>