google / battery-historian

Battery Historian is a tool to analyze battery consumers using Android "bugreport" files.
Other
5.31k stars 956 forks source link

Failed to parsing bugreport #91

Open aprudovsky opened 7 years ago

aprudovsky commented 7 years ago

no data showed at all

Errors error parsing pr: strconv.ParseFloat: parsing "syn": invalid syntax device capacity is 0

Warnings found unexpected uid 39999 for section "pwi" found unexpected uid 3011 for section "pwi" found unexpected uid 3012 for section "pwi" The underlying format for pr has 1 additional field(s) that are not captured.

bugrep.txt

paravz commented 7 years ago

Found your issue searching for explanation of my power usage..

On my phone 3011 is /system/bin/sensors.qcom and 39999 is more bizarre:

$ ID=39999; find / -group $ID -o -user $ID   2>/dev/null
/data/app/com.skype.raider-1/oat/arm/base.odex
[another app omitted]

The power usage by these uids on mine is small, while unaccounted usage is 746 mAh, or about a third - this is really what I'm looking to understand:

# grep pwi bugreport.txt | grep -E "3011|39999|unacc"
9,0,l,pwi,unacc,746
9,3011,l,pwi,uid,1.28
9,39999,l,pwi,uid,1.22