"Hi" from the devtools team,
First, know that we now have resources dedicated to B2G-specific performance
tools (we'll focus on memory first).
Here is a proposal:
- frontend: a monitoring screen in the App Manager. We build a *generic* tool
that just draw graphs in the App Manager (graphs can be anything. Battery,
processes memories, CPU load, ...). Graphs will pile up. Graphs will be updated
live.
- backend: to draw stuff in the graph from Gecko, send a message via the
ObserverService:
> Services.obs.notifyObserver(null,"devtools-monitor-update",
> {graphID:"memory",metric:"homescreen/webapp.manifest",values:[value:42,time:...]}
- backend: to draw stuff from a B2G-side shell script, we can build a
bash-based script that feeds the devtools protocol (just to simulate
Services.obs.notifyObserver)
... the devtools protocol will make sure to forward these JSON data to the
monitor screen.
Then anybody can add data to this monitoring screen.
I still need to sync-up with the devtools perf team who is also working on
memory and perf tools (but their tools are much more granular).
This competes with the profiler though. But we can figure out what to do about
that later.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g