• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching full:metrics

1 # Quickstart: SQL-based analysis and trace-based metrics
4 programmatically query the trace contents through SQL and compute trace-based metrics._
95 ### Trace-based metrics
98 pre-baked queries, herein called "metrics". Metrics are generally curated by
101 Metrics allow to get a summarized view of the trace without having to type any
104 The metrics` schema files live in the
105 [/protos/perfetto/metrics](/protos/perfetto/metrics/) directory.
107 [/src/trace_processor/metrics](/src/trace_processor/metrics/).
111 Let's run the [`android_cpu`](/protos/perfetto/metrics/android/cpu_metric.proto)
112 metric. This metrics computes the total CPU time and the total cycles
117 ./trace_processor --run-metrics android_cpu trace.perfetto-trace
126 metrics {
136 metrics {
154 metrics {
164 metrics {
180 #### Running multiple metrics argument
182 Multiple metrics can be flagged using comma separators to the `--run-metrics`
184 metrics.
187 $ ./trace_processor --run-metrics android_mem,android_cpu trace.perfetto-trace
225 metrics {
246 Both single and multiple metrics are supported as with proto text output.
249 ./trace_processor --run-metrics android_mem --metrics-output=binary trace.perfetto-trace
252 ./trace_processor --run-metrics android_mem,android_cpu --metrics-output=json trace.perfetto-trace
295 "metrics": {
382 metrics {
390 metrics {
400 metrics {
428 * The [metrics documentation](/docs/analysis/metrics.md) gives a more in-depth
429 look into metrics including a short walkthrough on how to build an
434 steps on how new metrics can be added to the trace processor.