add thermal data source to poll temperatures
Add the "android.thermal" data source. Below is a sample config:
data_sources: {
config {
name: "android.thermal"
android_thermal_config {
poll_ms: 1000
sensors: "BIG"
sensors: "MID"
sensors: "usb_pwr_therm"
sensors: "usb_pwr_therm2"
sensors: "maxfg"
sensors: "disp_therm"
sensors: "therm_6"
sensors: "therm_7"
sensors: "battery"
sensors: "battery_cycle"
sensors: "soc"
sensors: "smpl_gm"
sensors: "LITTLE"
sensors: "vdroop1"
sensors: "batoilo"
sensors: "vdroop2"
sensors: "batt_vs"
sensors: "mdis_morepower"
sensors: "thb_hda"
sensors: "G3D"
sensors: "ISP"
sensors: "TPU"
sensors: "AUR"
sensors: "neutral_therm"
sensors: "quiet_therm"
sensors: "charger_skin_therm"
}
}
}
Test: tested on tangorpro device. Also has been used extensively in Android XR project.
Bug: 423091981
Change-Id: I4a7302a60e79a54d98df8122f6a60aab18555728
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.