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