newrelic / video-agent-roku

New Relic Agent for Roku
Apache License 2.0
18 stars 18 forks source link

Memory attributes #63

Closed asllop closed 8 months ago

asllop commented 10 months ago

Add memory attributes available on RokuOS 12.5+

asllop commented 10 months ago

Detected problems with RokuOS 12.5 beta, probably caused by a bug in RokuOS. Waiting to get a stable version from Roku.

asllop commented 10 months ago

The call to roAppMemoryMonitor.GetChannelAvailableMemory() freezes the device, unless you put a special setting in your app's manifest: run_as_process=1 , in that case it works perfectly. Looks like a call to roAppMemoryMonitor.EnableMemoryWarningEvent(true) returns true when this configuration exist, and false otherwise, and thus it's only safe to call GetChannelAvailableMemory when it returns true.