Memory and CPU metrics were only reporting the last values collected after 10 s interval. It cannot provide accurate data, instead we are now collecting metrics more frequently and report the aggregated values during push.
How?
Collect CPU usage and Memory footprint using timers configured to read values every 100 ms, then report the aggregation depending on the metric type:
The max memory footprint
The average CPU usage
The min frame rate.
Review checklist
[ ] Feature or bugfix MUST have appropriate tests (unit, integration)
[ ] Make sure each commit and the PR mention the Issue number or JIRA reference
What and why?
Memory and CPU metrics were only reporting the last values collected after 10 s interval. It cannot provide accurate data, instead we are now collecting metrics more frequently and report the aggregated values during push.
How?
Collect CPU usage and Memory footprint using timers configured to read values every 100 ms, then report the aggregation depending on the metric type:
Review checklist