Description
Supported Script Types:
- Interface Scripts
- Write a script using the below and launch interface with:
interface --testScript path/to/script.js
- Save the recorded events with Test.stopTracing to a
.json
or.json.gz
file - Open Chrome, visit chrome://tracing and load your file
Methods
Name | Return Value | Summary |
---|---|---|
clear
|
None |
Clears all caches |
clearCaches
|
None |
Clear all caches (menu command Reload Content) |
endTraceEvent
|
None |
Stop a specific name event |
getOtherAvatarsReplicaCount
|
number |
Return the number of replicas that are being created of other-avatars when entering a domain |
isTextureLoadingComplete
|
boolean |
Check whether all textures have been loaded |
loadTestScene
|
None |
Waits for all pending downloads, parsing and texture transfers to be complete |
quit
|
None |
Exits the application |
saveObject
|
None |
Save a JSON object to a file in the test results location |
savePhysicsSimulationStats
|
None |
Write detailed timing stats of next physics stepSimulation() to filename |
savePhysicsSimulationStats
|
None |
Profiles a specific function |
setMinimumGPUTextureMemStabilityCount
|
None |
Set number of cycles texture size is required to be stable |
setOtherAvatarsReplicaCount
|
None |
Values higher than 0 will create replicas of other-avatars when entering a domain for testing purpouses |
showMaximized
|
None |
Maximizes the window |
startTraceEvent
|
None |
Starts a specific trace event |
startTracing
|
None |
Start recording Chrome compatible tracing events |
stopTracing
|
bool |
Stop recording Chrome compatible tracing events and serialize recorded events to a file |
wait
|
None |
Waits a specific number of milliseconds |
waitForConnection
|
None |
Waits for establishment of connection to server |
waitForDownloadIdle
|
None |
Waits for all pending downloads to be complete |
waitForProcessingIdle
|
None |
Waits for all file parsing operations to be complete |
waitForTextureIdle
|
None |
Waits for all texture transfers to be complete |
waitIdle
|
None |
Waits for all pending downloads, parsing and texture transfers to be complete |
Method Details
(static) clear( ) |
---|
Clears all caches |
(static) clearCaches( ) |
---|
Clear all caches (menu command Reload Content) |
(static) endTraceEvent( name ) | ||||||
---|---|---|---|---|---|---|
Stop a specific name event Parameters
|
(static) getOtherAvatarsReplicaCount( ) → {number}
Returns: Current number of replicas of other-avatars. |
---|
Return the number of replicas that are being created of other-avatars when entering a domain |
(static) isTextureLoadingComplete( ) → {boolean}
Returns: true texture memory usage is not increasing
|
---|
Check whether all textures have been loaded |
(static) loadTestScene( sceneFile ) | ||||||
---|---|---|---|---|---|---|
Waits for all pending downloads, parsing and texture transfers to be complete Parameters
|
(static) quit( ) |
---|
Exits the application |
(static) saveObject( name, filename ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Save a JSON object to a file in the test results location Parameters
|
(static) savePhysicsSimulationStats( filename ) | ||||||
---|---|---|---|---|---|---|
Write detailed timing stats of next physics stepSimulation() to filename Parameters
|
(static) savePhysicsSimulationStats( name, function ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Profiles a specific function Parameters
|
(static) setMinimumGPUTextureMemStabilityCount( count ) | ||||||
---|---|---|---|---|---|---|
Set number of cycles texture size is required to be stable Parameters
|
(static) setOtherAvatarsReplicaCount( count ) | ||||||
---|---|---|---|---|---|---|
Values higher than 0 will create replicas of other-avatars when entering a domain for testing purpouses Parameters
|
(static) showMaximized( ) |
---|
Maximizes the window |
(static) startTraceEvent( name ) | ||||||
---|---|---|---|---|---|---|
Starts a specific trace event Parameters
|
(static) startTracing( logrulesopt ) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Start recording Chrome compatible tracing events Parameters
|
(static) stopTracing( filename ) → {bool}
Returns: True if successful. |
||||||
---|---|---|---|---|---|---|
Stop recording Chrome compatible tracing events and serialize recorded events to a file Parameters
|
(static) wait( milliseconds ) | ||||||
---|---|---|---|---|---|---|
Waits a specific number of milliseconds Parameters
|
(static) waitForConnection( maxWaitMsopt ) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Waits for establishment of connection to server Parameters
|
(static) waitForDownloadIdle( ) |
---|
Waits for all pending downloads to be complete |
(static) waitForProcessingIdle( ) |
---|
Waits for all file parsing operations to be complete |
(static) waitForTextureIdle( ) |
---|
Waits for all texture transfers to be complete |
(static) waitIdle( ) |
---|
Waits for all pending downloads, parsing and texture transfers to be complete |