console.profileEnd([label])


除非在检查器中使用,否则此方法不显示任何内容。 如果已启动,则停止当前的 JavaScript CPU 概要分析会话,并将报告打印到检查器的 Profiles 面板。 有关示例,请参阅 console.profile()

如果在没有标签的情况下调用此方法,则会停止最近启动的配置文件。

This method does not display anything unless used in the inspector. Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector. See console.profile() for an example.

If this method is called without a label, the most recently started profile is stopped.