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:
Temperature sampling is not enabled by default. To enable temperature sampling, run the following command prior to capturing the trace:
ffx profile temperature logger start -s 500ms
Note: The ffx profile
command is used to enable sampling of several different measurements in addition to temperature.
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:
ffx trace start --categories "#default,metrics_logger"
{% dynamic if user.is_googler %}
As thermal measurements are hardware dependent, Googlers can find additional device specific information at go/fuchsia-tracing-internal-docs. {% dynamic endif %}