Issue #14813 has been updated by vo.x (Vit Ondruch).


Just FTR, Ruby in Fedora/RHEL has built in support for SystemTap.

Not sure what r63581 really does, but you might find useful these two .stp files:

https://src.fedoraproject.org/rpms/ruby/blob/master/f/libruby.stp
https://src.fedoraproject.org/rpms/ruby/blob/master/f/ruby-exercise.stp

----------------------------------------
Feature #14813: [PATCH] gc.c: make gc_enter+gc_exit pairs dtrace probes, too
https://bugs.ruby-lang.org/issues/14813#change-72636

* Author: normalperson (Eric Wong)
* Status: Open
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* Target version: 
----------------------------------------
gc.c: make gc_enter+gc_exit pairs dtrace probes, too

I would like to use these with systemtap to gather
min/max/avg/variance data for gc_*_continue functions.

I prefer to use systemtap/dtrace and not modify or load extra
Ruby code to use built-in tracing.  Systemtap also has aggregate
functionality built in for @min/@max/@avg and @hist_log for
generating histograms:

  https://80x24.org/spew/20180602135820.6686-1-e / 80x24.org/raw
  (work-in-progress)


I will add documentation to probes.d and doc/dtrace_probes.rdoc
if accepted.


---Files--------------------------------
0001-gc.c-make-gc_enter-gc_exit-pairs-dtrace-probes-too.patch (4.94 KB)


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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>