Skip to content

Commit

Permalink
Remove mem attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
asllop committed Oct 24, 2023
1 parent 565313b commit be7c026
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CHANGELOG
All notable changes to this project will be documented in this file.

## [3.2.3] - 2023/10/24
### Add
- Device model attributes.

## [3.2.2] - 2023/09/01
### Update
- Improve NRTask console logging, reducing task rendezvous.
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,6 @@ There is a set of attributes common to all actions sent over a `RokuSystem` and
| `timeZone` | Current user’s timezone. |
| `locale` | Current user’s locale. |
| `memoryLevel` | Device memory level. |
| `memLimitPercent` | Usage percentage of memory limit for the channel. |
| `channelAvailMem` | Estimated kilobytes of memory available for the channel. |
| `connectionType` | Network connection type (WiFi, etc). |
| `displayType` | Type of display, screen, TV, etc. |
| `displayMode` | Display mode. |
Expand Down
9 changes: 0 additions & 9 deletions components/NewRelicAgent/NRAgent.brs
Original file line number Diff line number Diff line change
Expand Up @@ -732,15 +732,6 @@ function nrAddAttributes(ev as Object) as Object
ev.AddReplace("videoMode", dev.GetVideoMode())
ev.AddReplace("graphicsPlatform", dev.GetGraphicsPlatform())
ev.AddReplace("timeSinceLastKeypress", dev.TimeSinceLastKeypress() * 1000)
memMonitor = CreateObject("roAppMemoryMonitor")
'Available for RokuOS v12.0+
if memMonitor <> invalid
ev.AddReplace("memLimitPercent", memMonitor.GetMemoryLimitPercent())
'Available for RokuOS v12.5+
if FindMemberFunction(memMonitor, "GetChannelAvailableMemory") <> Invalid
ev.AddReplace("channelAvailMem", memMonitor.GetChannelAvailableMemory())
end if
end if
app = CreateObject("roAppInfo")
appid = app.GetID().ToInt()
if appid = 0 then appid = 1
Expand Down
2 changes: 1 addition & 1 deletion components/NewRelicAgent/NRAgent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<interface>
<!-- Properties -->
<field id="version" type="string" value="3.2.2"/>
<field id="version" type="string" value="3.2.3"/>
<!-- Public Methods (wrapped) -->
<function name="NewRelicInit"/>
<function name="NewRelicVideoStart"/>
Expand Down

0 comments on commit be7c026

Please sign in to comment.