new PerformanceWatchdogViewModel(optionsopt)
The view model for
PerformanceWatchdog
.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Object with the following properties:
Properties
|
Members
dismissMessage :Command
Gets a command that dismisses the low frame rate message. Once it is dismissed, the message
will not be redisplayed.
Type:
lowFrameRateMessage :String
Gets or sets the message to display when a low frame rate is detected. This string will be interpreted as HTML.
Type:
- String
lowFrameRateMessageDismissed :Boolean
Gets or sets a value indicating whether the low frame rate message has previously been dismissed by the user. If it has
been dismissed, the message will not be redisplayed, no matter the frame rate.
Type:
- Boolean
scene :Scene
Gets the
Scene
instance for which to monitor performance.
Type:
showingLowFrameRateMessage :Boolean
Gets or sets a value indicating whether the low frame rate message is currently being displayed.
Type:
- Boolean