show memory used per app UI
I would like to request a feature to show used memory by app from UI. current UI has multiple items there but not easy to understand how much memory used by app.
I run sql to query and got below results: ts value counter_name
23527792117480 0.0 mem.locked
23527792117480 8646656.0 mem.rss
23527792117480 2510848.0 mem.rss.anon
23527792117480 4268032.0 mem.rss.file
23527792117480 1867776.0 mem.rss.shmem
23527792117480 15683584.0 mem.rss.watermark
23527792117480 4403200.0 mem.swap
23533607442061 6975488.0 mem.unreclaimable
23527792117480 12837453824.0 mem.virt
Or please help direct which combination should be the used memory by app? Is it mem.rss.file + mem.rss.anon?
@aMayzner can answer this question.
The memory types you are most likely looking for are anon RSS and swap. To query:
SELECT RUN_METRIC('android/process_mem.sql');
SELECT * FROM anon_and_swap_span;
To see it in the UI you can use the Debug track functionality.
- Load the trace
- Run the query
- You will see values in the lower part of the page. When you click
Show debug trackbutton, you can visualise the data from any query. Make sure to set the debug track type to counter and value to value column.
I will migrate this table to standard library, so it's easier to access.
Good, thanks,
would you please help show me where is the "show trace button"? I just run the SQL query from UI and saw the output list, but do not find "show debug trace button" from the page.
Wow, after switch to timeline view, yes, I saw that button, I changed it to counter and the value to anon_free_and_swap, but after confirmed, nothing happen!
Great, many thanks