Title: Add Jetpack Macrobenchmark for SDK init performance · Issue #5679 · getsentry/sentry-java · GitHub
Open Graph Title: Add Jetpack Macrobenchmark for SDK init performance · Issue #5679 · getsentry/sentry-java
X Title: Add Jetpack Macrobenchmark for SDK init performance · Issue #5679 · getsentry/sentry-java
Description: Why We currently rely on ad-hoc btrace/perfetto captures to measure Android SDK init cost. A Jetpack Macrobenchmark gives us a stable, reproducible, on-device measurement we can run repeatedly to validate init-time changes (and potential...
Open Graph Description: Why We currently rely on ad-hoc btrace/perfetto captures to measure Android SDK init cost. A Jetpack Macrobenchmark gives us a stable, reproducible, on-device measurement we can run repeatedly to v...
X Description: Why We currently rely on ad-hoc btrace/perfetto captures to measure Android SDK init cost. A Jetpack Macrobenchmark gives us a stable, reproducible, on-device measurement we can run repeatedly to v...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/5679
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add Jetpack Macrobenchmark for SDK init performance","articleBody":"## Why\n\nWe currently rely on ad-hoc btrace/perfetto captures to measure Android SDK init cost. A Jetpack Macrobenchmark gives us a stable, reproducible, on-device measurement we can run repeatedly to validate init-time changes (and potentially wire into CI later).\n\n## What\n\nAdd a Macrobenchmark module that measures cold-start of `sentry-samples-android`, with `SentryAndroid.init` narrowed down via a trace section so sub-millisecond changes are resolvable, e.g.:\n\n* `timeToInitialDisplay` / `timeToFullDisplay` (`StartupTimingMetric`) for whole-app cold start\n* A dedicated `TraceSectionMetric` around the SDK init block, so per-line/per-check init cost changes are visible above cold-start noise\n* `CompilationMode.Full()` to pin ART AOT and avoid dexopt drift between runs\n* `StartupMode.COLD` (force-stop, not `pm clear`) so app data/permissions persist across runs","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-07-02T08:58:56Z","url":"https://github.com/getsentry/sentry-java/issues/5679"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dded24c0-87a8-0388-c3ff-1fc7076460f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95B0:C24D0:2B482D:3C7C68:6B04755D |
| html-safe-nonce | e4c62de538b5f7ab658037a7836a938418d4fa8d1de666ab00134fe344ad3375 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUIwOkMyNEQwOjJCNDgyRDozQzdDNjg6NkIwNDc1NUQiLCJ2aXNpdG9yX2lkIjoiNDQyMDUxMzUyOTc3NDUwMzI2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f62a8dd51d81780244287f62e863c3358d1f6cfa85dca386547222044a8684f5 |
| hovercard-subject-tag | issue:4792881110 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/5679/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e19790310335ce0d8d48f91c577b2c2ac670bd5c8321c60965b2f269ff4d3d73/getsentry/sentry-java/issues/5679 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e19790310335ce0d8d48f91c577b2c2ac670bd5c8321c60965b2f269ff4d3d73/getsentry/sentry-java/issues/5679 |
| og:image:alt | Why We currently rely on ad-hoc btrace/perfetto captures to measure Android SDK init cost. A Jetpack Macrobenchmark gives us a stable, reproducible, on-device measurement we can run repeatedly to v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width