Skip to content

Split debug - #233

Merged
r1viollet merged 7 commits into
mainfrom
r1viollet/split_debug
Jul 3, 2025
Merged

Split debug#233
r1viollet merged 7 commits into
mainfrom
r1viollet/split_debug

Conversation

@r1viollet

@r1violletr1viollet commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?:

Add build steps to store split debug information for release builds

Motivation:

  • Ensure we can get profiling stacks.
  • Ensure we can investigate crashes without having to disassemble the code.

Additional Notes:

How to test the change?:

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: PROF-11788

Unsure? Have a question? Request a review!

@github-actions

github-actionsBot commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Errors (2)

Warnings (4)

Style Violations (297)

@github-actions

github-actionsBot commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

🔧 Report generated by pr-comment-scanbuild

Add build steps to store split debug information for release builds
@r1viollet
r1violletforce-pushed the r1viollet/split_debug branch 2 times, most recently from 108ded7 to 31687e2CompareJuly 1, 2025 10:06
- Refactor split debug tasks out of the build
- Check if tooling is available to perform split debug operations
@r1viollet
r1violletforce-pushed the r1viollet/split_debug branch 3 times, most recently from a09b7fc to a882f05CompareJuly 1, 2025 13:32
Comment threadREADME.md

### Build Options
- **Skip debug extraction**: `./gradlew buildRelease -Pskip-debug-extraction=true`
- **Debug extraction requires**: `objcopy` (Linux) or `dsymutil` (macOS)

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not test on MacOS 😬
Feedback appreciated if this fails

@r1viollet
r1violletforce-pushed the r1viollet/split_debug branch from a882f05 to c4dd50eCompareJuly 1, 2025 14:01
@r1viollet
r1viollet marked this pull request as ready for review July 1, 2025 14:25
Comment threadddprof-lib/build.gradle
@r1viollet
r1violletforce-pushed the r1viollet/split_debug branch from ab25d6a to 35ec2cdCompareJuly 2, 2025 13:18
@r1viollet
r1viollet merged commit 9213a67 into mainJul 3, 2025
@r1viollet
r1viollet deleted the r1viollet/split_debug branch July 3, 2025 12:30
@github-actionsgithub-actionsBot added this to the 1.29.0 milestone Jul 3, 2025
zhengyu123 pushed a commit that referenced this pull request Jul 9, 2025
* Split debug
Add build steps to store split debug information for release builds
zhengyu123 added a commit that referenced this pull request Jul 9, 2025
* Potential memory leak with the JVMTI wallclock sampler
* v1
* Don't sample terminated thread
* v2
* v3
* v4
* Safe access
* Fix thread state
* v5
* Cleanup
* Cleanup
* safeFetch impl
* jdk11 support
* v6
* enhance and cleanup
* fix nullptr deference
* More cleanup
* Erwan's finding
* Fixed memory leak found by Erwan
* [Automated] Bump dev version to 1.29.0
* Update the sonatype repos (#235)
* Fix artifact download URL
* Split debug (#233)
* Split debug
Add build steps to store split debug information for release builds
* Add the micro-benchmark for thread filtering (#237)
* Add the micro-benchmark for thread filtering
* Do not test for obviously invalid thread id
* Relax threadfilter mem order
* Flaky test - j9 OSR (#239)
Skip zing and j9 flaky tests
* Fix flaky allocation test (#241)
Lower threshold for allocation test
* jbachorik's comments
* More jbachorik's comments
* Cleanup thread local references
---------
Co-authored-by: zhengyu.gu <zhengyu.gu@servicenow.com>
Co-authored-by: Datadog Java Profiler <java-profiler@datadoghq.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@datadoghq.com>
Co-authored-by: Jaroslav Bachorik <j.bachorik@gmail.com>
Co-authored-by: r1viollet <74836499+r1viollet@users.noreply.github.com>
Sign up for freeto 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

@r1viollet@jbachorik