Skip to content

Document how to enable DTrace probes #4587

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

Closed
wants to merge 1 commit into from

Conversation

jeremyevans
Copy link
Contributor

@jeremyevans jeremyevans commented Jun 18, 2021

DTrace probes used to be enabled by default, but starting in 2.5,
you need to enable a TracePoint to enable most DTrace probes.

Note that I don't have access to a system with DTrace, so I'm not
sure this is correct. Hopefully someone who knows more about
DTrace can confirm.

Fixes [Bug #14582]

https://bugs.ruby-lang.org/issues/14582

@jeremyevans jeremyevans requested a review from tenderlove June 18, 2021 18:04
@ko1
Copy link
Contributor

ko1 commented Jun 28, 2021

@tenderlove I think TP is not required for this feature. I'm wrong about it?

@hsbt hsbt added the Documentation Improvements to documentation. label Jan 15, 2022
@mame
Copy link
Member

mame commented Jun 9, 2022

@tenderlove Could you please review this PR? It is only a change of documentation.

My understanding is:

  • Some dtrace probes are fired in trace instructions.
  • Due to https://bugs.ruby-lang.org/issues/14104, trace instructions are disabled by default. The workaround idiom TracePoint.new{}.enable enables them.

It is a little uncool, but I think it can't be helped.

DTrace probes used to be enabled by default, but starting in 2.5,
you need to enable a TracePoint to enable most DTrace probes.

Fixes [Bug #14582]
@hsbt hsbt force-pushed the dtrace-enable-doc-14582 branch from dafdc2e to 49b53dc Compare October 25, 2023 07:03
@voxik
Copy link
Contributor

voxik commented Nov 27, 2023

Please note this has been already documented by #3115

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

Successfully merging this pull request may close these issues.

6 participants