Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instantiate continuous profiling v8 (p3) #3725

Open
wants to merge 6 commits into
base: feat/continuous-profiling-part2
Choose a base branch
from

Conversation

stefanosiano
Copy link
Member

📜 Description

added profile context to SentryTracer
removed isProfilingEnabled from AndroidContinuousProfiler, as it's useless
added continuous profiler to SentryOptions
added DefaultTransactionPerformanceCollector to AndroidContinuousProfiler and updated it to work with string ids other than transactions
fixed ProfileChunk measurements being modifiable from other code
added thread id and name to SpanContext.data

#skip-changelog

💡 Motivation and Context

Instantiate Continuous Profiler
Part 3 of #3710

💚 How did you test it?

Unit tests

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

removed isProfilingEnabled from AndroidContinuousProfiler, as it's useless
added continuous profiler to SentryOptions
…ontinuous-profiling-part3

# Conflicts:
#	sentry/src/main/java/io/sentry/SentryTracer.java
#	sentry/src/test/java/io/sentry/OutboxSenderTest.kt
…iler

updated DefaultTransactionPerformanceCollector to work with string ids other than transactions
fixed ProfileChunk measurements being modifiable from other code
added thread id and name to SpanContext.data
@stefanosiano stefanosiano changed the title Instantiate continuous profiling (p3) Instantiate continuous profiling v8 (p3) Sep 26, 2024
@stefanosiano stefanosiano changed the base branch from main to feat/continuous-profiling-part2 September 26, 2024 11:00
Copy link
Contributor

github-actions bot commented Sep 26, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against a62b060

@stefanosiano stefanosiano marked this pull request as ready for review September 26, 2024 11:15
Copy link
Contributor

github-actions bot commented Sep 26, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 445.13 ms 476.68 ms 31.55 ms
Size 1.70 MiB 2.36 MiB 670.75 KiB

Baseline results on branch: feat/continuous-profiling-part2

Startup times

Revision Plain With Sentry Diff
b509687 457.38 ms 494.96 ms 37.58 ms
dfd1e05 453.58 ms 460.10 ms 6.52 ms

App size

Revision Plain With Sentry Diff
b509687 1.70 MiB 2.35 MiB 668.62 KiB
dfd1e05 1.70 MiB 2.35 MiB 669.02 KiB

Previous results on branch: feat/continuous-profiling-part3

Startup times

Revision Plain With Sentry Diff
f31189c 434.21 ms 459.38 ms 25.17 ms

App size

Revision Plain With Sentry Diff
f31189c 1.70 MiB 2.35 MiB 669.52 KiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants