PerformanceWatchdog

new Cesium.PerformanceWatchdog(options)

监控应用的性能,并在检测到性能不佳时显示一条消息。
Name Type Description
options object optional Object with the following properties:
Name Type Default Description
container Element | string 将包含该控件的 DOM 元素或 ID。
scene Scene 要监控其性能的 Scene
lowFrameRateMessage string 'This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers.' optional 当检测到低帧率时要显示的消息。该消息会被当作 HTML 解释,因此请确保其 来自可信来源,以免你的应用遭受跨站脚本(cross-site scripting)攻击。

Members

获取父容器(parent container)。
获取视图模型(view model)。

Methods

销毁该控件。如果要从布局中永久 移除该控件,应调用此方法。
Returns:
若对象已被销毁则为 true,否则为 false。
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。