Skip to content

PROF-10079: jvmti based wallclock sampler - #118

Closed
richardstartin wants to merge 1 commit into
mainfrom
rgs/jvmti-wallclock-sampler
Closed

richardstartin wants to merge 1 commit into
mainfrom
rgs/jvmti-wallclock-sampler

Conversation

@richardstartin

@richardstartin richardstartin commented Jul 17, 2024 •

Copy link
Copy Markdown
Contributor

What does this PR do?:
Introduces a new wallclock sampler not based on signals, which uses JVMTI APIs instead.

Motivation:

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.

Unsure? Have a question? Request a review!

@github-actions

Copy link
Copy Markdown
Contributor

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Warnings (6)

Style Violations (168)

@github-actions

Copy link
Copy Markdown
Contributor

🔧 Report generated by pr-comment-scanbuild

Scan-Build Report

User:runner@fv-az1148-616
Working Directory:/home/runner/work/java-profiler/java-profiler/ddprof-lib/src/test/make
Command Line:make -j4 clean all
Clang Version:Ubuntu clang version 14.0.0-1ubuntu1.1
Date:Wed Jul 17 11:56:02 2024

Bug Summary

Bug TypeQuantityDisplay?
All Bugs10
Logic error
Assigned value is garbage or undefined1
Dereference of null pointer3
Memory error
Memory leak1
Unused code
Dead initialization3
Dead nested assignment2

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Logic errorAssigned value is garbage or undefineddwarf.cppparseInstructions23520
Unused codeDead initializationwallClock_jvmti.cpptimerLoop691
Unused codeDead initializationlivenessTracker.cppcleanup_table451
Unused codeDead initializationwallClock_jvmti.cpptimerLoop781
Unused codeDead nested assignmentvmStructs.cppcheckNativeBinding8271
Unused codeDead nested assignmentwallClock_jvmti.cpptimerLoop721
Logic errorDereference of null pointerflightRecorder.cppflush14058
Logic errorDereference of null pointersafeAccess.hload3518
Logic errorDereference of null pointersymbols_linux.hElfParser12832
Memory errorMemory leakwallClock_jvmti.cpptimerLoop1116

@jbachorik jbachorik changed the title jvmti based wallclock sampler PROF-10079: jvmti based wallclock sampler Jul 17, 2024
@r1viollet

Copy link
Copy Markdown
Contributor

I will convert to draft to ensure we can keep this around for documentation, though we are not planning to integrate this as of now.

@r1viollet
r1viollet marked this pull request as draft August 19, 2024 07:51
@jbachorik

Copy link
Copy Markdown
Collaborator

@r1viollet I hope we will get this finished. The ASGCT and I/O interrupted by signals issues would be great to avoid...

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.

3 participants