Overview

The ProfilingManager Android API lets you collect real user performance profiles, such as system traces, programmatically. The ProfilingManager API supports two types of trace collections: traces that you explicitly start and event-based traces.

This section focuses on traces that you explicitly start and covers the following topics:

  • How to collect traces with ProfilingManager.
  • How to retrieve those traces.
  • How to visualize traces in Perfetto UI.
  • Important details about how ProfilingManager works.