PerformanceWatchdog - Cesium Documentation

# PerformanceWatchdog

#### new PerformanceWatchdog(options)

  Monitors performance of the application and displays a message if poor performance is detected.

  Name | Type | Description
  --- | --- | ---

  `options`

  Object

  optional Object with the following properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `container` | Element | String |  | The DOM element or ID that will contain the widget.
  `scene` | Scene |  | The `Scene` for which to monitor performance.
  `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 The message to display when a low frame rate is detected. The message is interpeted as HTML, so make sure it comes from a trusted source so that your application is not vulnerable to cross-site scripting attacks.

  Source: Widgets/PerformanceWatchdog/PerformanceWatchdog.js, line 33

### Members

#### container :Element

  Gets the parent container.
  Source: Widgets/PerformanceWatchdog/PerformanceWatchdog.js, line 79

#### viewModel :PerformanceWatchdogViewModel

  Gets the view model.
  Source: Widgets/PerformanceWatchdog/PerformanceWatchdog.js, line 91

### Methods

#### destroy()

  Destroys the widget. Should be called if permanently removing the widget from layout.
  Source: Widgets/PerformanceWatchdog/PerformanceWatchdog.js, line 111

#### isDestroyed() → Boolean

  ##### Returns:

  true if the object has been destroyed, false otherwise.
  Source: Widgets/PerformanceWatchdog/PerformanceWatchdog.js, line 102