-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
Change payload for Continuous Profiling v8 (p2) #3711
base: feat/continuous-profiling-part1
Are you sure you want to change the base?
Change payload for Continuous Profiling v8 (p2) #3711
Conversation
added IHub.captureProfileChunk and ISentryClient.captureProfileChunk added profilerId and chunkId reset logic to AndroidContinuousProfiler added absolute timestamps to ProfileMeasurementValue added ProfileContext to Contexts
|
Performance metrics 🚀
|
…ontinuous-profiling-part2
sentry-android-core/src/main/java/io/sentry/android/core/AndroidContinuousProfiler.java
Outdated
Show resolved
Hide resolved
sentry-android-core/src/main/java/io/sentry/android/core/AndroidContinuousProfiler.java
Show resolved
Hide resolved
sentry-android-core/src/main/java/io/sentry/android/core/AndroidContinuousProfiler.java
Show resolved
Hide resolved
…ta, now it uses timestamp.nanotime() to achieve same result profiler resets chunk id and profiler id in case profile is not recorded due to an error
…rofiling-part2 # Conflicts: # sentry-android-core/src/main/java/io/sentry/android/core/AndroidContinuousProfiler.java # sentry-android-core/src/main/java/io/sentry/android/core/AndroidProfiler.java # sentry/api/sentry.api # sentry/src/main/java/io/sentry/HubAdapter.java # sentry/src/test/java/io/sentry/protocol/ContextsTest.kt
sentry-android-core/src/main/java/io/sentry/android/core/AndroidContinuousProfiler.java
Outdated
Show resolved
Hide resolved
…ntinue scheduling restart
options | ||
.getExecutorService() | ||
.submit( | ||
() -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, one more thing I forgot - we should probably have a AtomicBoolean isClosed
value that we set in close()
and check here to prevent sending chunks when the sdk is closing, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i'll do it in a followup pr
📜 Description
added profile_chunk envelope create
added IHub.captureProfileChunk and ISentryClient.captureProfileChunk
added profilerId and chunkId reset logic to AndroidContinuousProfiler
added absolute timestamps to ProfileMeasurementValue
added ProfileContext to Contexts
#skip-changelog
💡 Motivation and Context
Implements payload changes for Continuous Profiling
Part 2 of #3710
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps