This sample channel demonstrates how the "sgnodes all" SceneGraph debug console command (port 8080) returns the reference counts held by the Roku OS (osref) and the channel itself (bscref).
To run this sample channel, follow these steps:
-
Download and extract the sample channel.
-
Follow the steps in Development environment setup to enable developer mode on your device, archive the files, and then sideload the archive to your Roku device.
-
Open the SceneGraph debug console (port 8080).
-
Enter the sgnodes all command
-
In the UI of the sample channel, select a list item. Observe the osref and bscref counts in the debug console.