Skip to content

Conversation

cleptric
Copy link
Member

@cleptric cleptric commented Jun 8, 2025

Adding support for Continuous Profiling. The 30 second limit does no longer apply.
For now, we have a simple profiles aggregator, similar to logs, which we can later make smarter to support the agent.

profiler()->start();

// your code

profiler()->stop();
profiler()->flush();

Develop Docs https://develop.sentry.dev/sdk/telemetry/profiles/sample-format-v2/

  • Add missing SDK options (docs are missing, tbd profiling team)
  • Toggle between the legacy and continuous profiler based on SDK options
  • Add debug logs
  • Add support for starting the profiler prior SDK init
  • Check if we need to validate the sample count

@cleptric cleptric self-assigned this Jun 8, 2025
@cleptric cleptric force-pushed the continuous-profiling branch 5 times, most recently from 2549ed8 to 93ef143 Compare June 10, 2025 20:28
@cleptric cleptric force-pushed the continuous-profiling branch from 8a4dc26 to 4a2c1a8 Compare June 13, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant