除非在检查器中使用,否则此方法不显示任何内容。 如果已启动,则停止当前的 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.