---
title: "Android profiling now uses Perfetto via ProfilingManager"
description: "Sentry Android SDK 8.51.0 switches profiling on Android 15+ (API 35+) from in-process Debug.startMethodTracing to Perfetto-based stack sampling via the system ProfilingManager API, while older devices fall back to the legacy profiler."
url: "https://swe.quest/articles/android-profiling-now-uses-perfetto-via-profilingmanager-538acbb1b0bbfbfb"
canonical: "https://blog.sentry.io/android-profilingmanager-perfetto/"
source: "Sentry"
published: "2026-11-02"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["mobile","performance","observability"]
---

# Android profiling now uses Perfetto via ProfilingManager

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-11-02, 3 min read, Release. Original: [https://blog.sentry.io/android-profilingmanager-perfetto/](https://blog.sentry.io/android-profilingmanager-perfetto/)

## Summary

Sentry Android SDK 8.51.0 switches profiling on Android 15+ (API 35+) from in-process Debug.startMethodTracing to Perfetto-based stack sampling via the system ProfilingManager API, while older devices fall back to the legacy profiler. Running out of process avoids an ART tracer crash triggered by native threads that exit without detaching, shifts most CPU and memory overhead into a system process, and yields more representative profiles. Android rate-limits profiling requests, so even a 1.0 session sample rate won't capture every session; an adb device\_config flag disables the limit for local testing, and a new enableLegacyProfiling option can be set to false to avoid the legacy tracer entirely.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- Android app development ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))
- Kotlin coroutines ([easy posts on Java & JVM](https://swe.quest/tags/jvm.md?difficulty=easy))
- CPU profiling basics ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

Sentry, Perfetto, ProfilingManager, Android 15, Debug.startMethodTracing, Android Runtime

## Related posts

- [The Sentry Android SDK is now 20-30% faster!](https://swe.quest/articles/the-sentry-android-sdk-is-now-20-30-faster-c43bd999f6f96999.md): Sentry · 2026-10-20 · Medium · 4 min read · Mobile, Performance engineering, Java & JVM
  Sentry's Android SDK init time dropped 20-30% between versions 8.43.0 and 8.54.0, alongside reduced memory allocation, fixed leaks and up to 10% less background CPU.
- [Reducing Android scope-sync overhead in Sentry Flutter](https://swe.quest/articles/reducing-android-scope-sync-overhead-in-sentry-flutter-318db2622363a7d1.md): Sentry · 2026-10-08 · Medium · 4 min read · Performance engineering, Mobile, Concurrency
  Sentry's Flutter SDK cut Android scope-update processing time by 27–30% by removing duplicate normalization and encoding JSON directly to UTF-8 bytes.
- [Sentry's Flutter SDK 10.0: Streaming Traces and More Accurate Crash-Free Rates](https://swe.quest/articles/sentry-s-flutter-sdk-10-0-streaming-traces-and-more-accurate-crash-free-rates-a06a0e8843447c28.md): Sentry · 2026-10-14 · Medium · 3 min read · Mobile, Observability
  Sentry's Flutter SDK 10.0 switches tracing to a streaming model that sends finished spans in batches instead of waiting for the whole transaction, with \`Sentry.startSpan\` for custom instrumentation and an opt-out via \`SentryTraceLifecycle.static\`.
- [Accelerating our Android apps with Baseline Profiles](https://swe.quest/articles/accelerating-our-android-apps-with-baseline-profiles-5eae1308e94ba496.md): Meta Engineering · 2025-10-01 · Medium · 11 min read · Mobile, Performance engineering, Runtimes & VMs, Java & JVM, Compilers
  Meta generates Android Baseline Profiles from production class-load and method-usage data to trigger ART install-time AOT compilation and app image creation, improving startup, scroll and navigation metrics by 3% to 40% across its apps.
- [Sentry’s Native SDK gets its own crash backend (and more)](https://swe.quest/articles/sentry-s-native-sdk-gets-its-own-crash-backend-and-more-2be31ec2bba6916c.md): Sentry · 2026-11-17 · Medium · 6 min read · C & C++, Observability, Performance engineering, Concurrency, Games
  Sentry Native SDK 1.0 replaces Google's Crashpad with Sentry's own out-of-process "Native" crash backend on desktop, built on the SDK's events, envelopes, hooks and transport so crashes can be reported as events, minidumps or both.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
