From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/console/profileend/index.html | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 files/zh-cn/web/api/console/profileend/index.html (limited to 'files/zh-cn/web/api/console/profileend') diff --git a/files/zh-cn/web/api/console/profileend/index.html b/files/zh-cn/web/api/console/profileend/index.html new file mode 100644 index 0000000000..6e1bb6ece9 --- /dev/null +++ b/files/zh-cn/web/api/console/profileend/index.html @@ -0,0 +1,46 @@ +--- +title: Console.profileEnd() +slug: Web/API/Console/profileEnd +translation_of: Web/API/Console/profileEnd +--- +

{{APIRef("Console API")}}{{Non-standard_header}}

+ +
+

在 console.profile() 之后立刻调用此API可能会导致其无法工作.。为解决此问题,请在setTimeOut中至少延迟5毫秒后再调用。 请看 bug #1173588

+
+ +

profileEnd方法会停止记录之前已经由{{domxref("Console.profile()")}}开始记录的性能描述信息

+ +

你可以选择提供一个参数来命名需要记录的描述信息。这使得你在记录多个描述信息的时候可以停止记录特定的描述信息。

+ + + +

{{AvailableInWorkers}}

+ +

语法

+ +
console.profileEnd(profileName);
+
+ +

参数

+ +
+
profileName
+
描述信息的名字。可选。
+
+ +

浏览器兼容性

+ + + +

{{Compat("api.Console.profileEnd")}}

+ +

参见

+ + -- cgit v1.2.3-54-g00ecf