# PerformanceWatchdog

#### new Cesium.PerformanceWatchdog(options)
widgets/Source/PerformanceWatchdog/PerformanceWatchdog.js 23

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.

### Members

#### container : Element
widgets/Source/PerformanceWatchdog/PerformanceWatchdog.js 69

Gets the parent container.

#### viewModel : PerformanceWatchdogViewModel
widgets/Source/PerformanceWatchdog/PerformanceWatchdog.js 81

Gets the view model.

### Methods

#### destroy()
widgets/Source/PerformanceWatchdog/PerformanceWatchdog.js 101

Destroys the widget. Should be called if permanently removing the widget from layout.

#### isDestroyed() → boolean
widgets/Source/PerformanceWatchdog/PerformanceWatchdog.js 92

##### Returns:

true if the object has been destroyed, false otherwise.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.