Progress
- Worked on a draft pull request, that involves rudimentary parts of the plugin monitor. Link
- Changed the previous approach, to avoid recreating a plugin list, instead created an object that contains process ids as keys and resource metrics as values, this object is updated in intervals.
- Tested the new approach and obtained coherent resource usage data in the react app.
Plans
- Looking into the alert system and testing alerts for excessive resource usage.
- Deciding the UI. As for now, I have little preference, so probably will go with whatever community prefers:
- Whether the config screen will have the plugin monitor?
- If yes, then will it have the resources displayed along each plugin, or will there be a separate screen
- Does it need graphs/charts for visualisation?
Problems
- A problem that was not solved from previous week, so requoting it:
I could not figure out how to make my test plugin use a certain (relatively large) amount of memory for a long time, as any unused variable is likely being deallocated by the garbage collector. I tried to loop over a large array of strings to prevent this, however, infinite looping eventually crashes my device by using too much CPU.