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.】