Hifor some development and battery analysis I made a script to allow to use perfetto with battery stats.It is not perfect and have some limitation, but it was useful for my investigation