-
Notifications
You must be signed in to change notification settings - Fork 25
Profiler
Requires Device
This command will run different profiling tasks on the device to provide profiling information about the currently sideloaded channel. Can run the following tasks:
Runs the sgnodes all
command on the device and prints out counts of each type
of node.
$ roku --profile stats
Runs the sgnodes all
command on the device and prints out all of the response
$ roku --profile all
Runs the sgnodes roots
command on the device and prints out all of the response
$ roku --profile roots
Runs the sgnodes <node id>
command on the device and prints out all of the response
$ roku --profile <node id>
Runs the r2d2_bitmaps
command on the device and prints out all of the response.
The list of images for each RoGraphics instance will be sorted by size.
$ roku --profile images
Runs the loaded_textures
command on the device and prints out all of the response
$ roku --profile textures
Maintains a constant report of the graphical memmory usage. Ctrl-C to stop.
$ roku --profile memmory
Requires Device
This command allows you to run a profile of your scene graph app. It uses the
sgperf
debugging command found in the roku documentation.
Running the command will start a new profiling session. The command will
continually report the statistics to the console. It will only log revilivent lines,
filtering our any lines that have no data. To print all threads that the device
reports pass the verbose option. Pressing Ctrl-C will end the profiling session.
$ roku --sgperf
or
$ roku --sgperf --verbose
Requires Device
This command will turn on enhanced logging for any possible log type the device allows. Currently this is only the rendezvous section. The command is used as follows:
$ roku --devlog <function> [<type>]
Function is either 'on' or 'off' and is required. The type is optional. It will default to 'rendezvous'. In the future when more types are added then you can choose the type by supplying it there.
$ roku --devlog on