Fuchsia tracing can capture temperature sensor readings when supported by the
hardware. These readings appear as counters in the trace data and are valuable
for two primary reasons:
Ensuring physical comfort - Devices that come into contact with people or
sensitive environments should not overheat.
Indicating power consumption - Heat generation is a general byproduct of
power consumption and can serve as an indirect measure of power usage.
Enabling thermal counters
Temperature sampling is not enabled by default. To enable temperature sampling,
run the following command prior to capturing the trace:
ffxprofiletemperatureloggerstart-s500ms
Capture the trace
For general information on Fuchsia tracing and how to capture trace events
with ffx trace, see Fuchsia tracing.
To include thermal counter data in your trace, specify the
metrics_logger category:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-26 UTC."],[],[]]