[ruby-core:68802] [Ruby trunk - Feature #10932] Enabling allocation tracing as early as possible

From: ko1@...
Date: 2015-04-08 10:12:06 UTC
List: ruby-core #68802
Issue #10932 has been updated by Koichi Sasada.


Matz has no objection (except file name).

I have 2 concerns.

(1) file name

We alraedy have tracer.rb.

How about objspace/allocation_tracer.rb?
(not clear?)

(2) including ObjectSpace

Should not include.


----------------------------------------
Feature #10932: Enabling allocation tracing as early as possible
https://bugs.ruby-lang.org/issues/10932#change-52073

* Author: Aaron Patterson
* Status: Open
* Priority: Normal
* Assignee: Koichi Sasada
----------------------------------------
Hi,

I'd like to be able to enable allocation tracing as early as possible.  I've attached a patch that I use to do that when I'm debugging code that I don't know very well.

The way I use it is like this:

  $ ruby -robjspace/trace_start some_test.rb

I like using this because many times I can't figure out when to enable object tracing.  Can we add this feature to object space?

---Files--------------------------------
trace_start.diff (305 Bytes)


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

In This Thread

Prev Next