hello google perfetto team
As you know, if enable continuous dump, perfetto will dump more pb files.
I know we can open it on
https://www.speedscope.app/. The page is callstack result of one raw-trace snapshort. But I want to find pb file which has biggest heap size usage and then parse it.
Do you know how to parse it and get callstack malloc size by python script?
Is there already has an open source tool/script do this?
====Following is my command===
python heap_profile.py -n vendor.qti.camera.provider-service_64 --all-heaps -c 500 -i %sampling_interval% -o %NOW_TIME%
===perfetto dump file list with continuous dump enabled ===
...
-a--- 2024/9/10 17:14 85519 heap_dump.9.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 579932 heap_dump.90.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 580215 heap_dump.91.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 581252 heap_dump.92.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 582000 heap_dump.93.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 582229 heap_dump.94.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 582509 heap_dump.95.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 582943 heap_dump.96.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 583358 heap_dump.97.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 583536 heap_dump.98.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 583836 heap_dump.99.11164.libc.malloc.pb
-a--- 2024/9/10 17:14 7368166 raw-trace