Method arguments in ruby-prof info

40 views
Skip to first unread message

Nilo Redini

unread,
Feb 5, 2016, 2:14:57 AM2/5/16
to ruby optimization
I am wondering if there is a way to see in the ruby-prof reports the values of the arguments of the called functions. I took a look at the ruby-prof documentation and it seems to me that such a info is not provided. Does anyone know if it is possible, and If not the reason of this choice? Did it involve modifying the interpreter?

Roger Pack

unread,
Feb 5, 2016, 9:18:22 AM2/5/16
to ruby optimization
So you want each method with "a different set of parameters" to show up differently in the reports?  or just one particular method? (anyway, today it does nothing with parameters AFAIK)

On Thu, Feb 4, 2016 at 10:29 PM, Nilo Redini <n.re...@gmail.com> wrote:
I am wondering if there is a way to see in the ruby-prof reports the values of the arguments of the called functions. I took a look at the ruby-prof documentation and it seems to me that such a info is not provided. Does anyone know if it is possible, and If not the reason of this choice? Did it involve modifying the interpreter?

--

---
You received this message because you are subscribed to the Google Groups "ruby optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-optimizat...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nilo Redini

unread,
Feb 10, 2016, 11:47:52 AM2/10/16
to ruby optimization
I would like each method in the report augment with its arguments. For example, assuming that a method foo(a) is called in a program:
def foo(a)
 
...
end

def bar
  foo
(2)
end

In the ruby-prof report I'd like to see in the ruby-prof report something like that:
method: foo
time: x
total_time: y
...
parameters: a=2
If a method is called twice, I'd like to see two entries in the report (like I guess it currently does, right?)

rogerdpack

unread,
Feb 16, 2016, 10:36:54 PM2/16/16
to ruby optimization
suggest creating a github issue those get looked at, move the conversation there :)
Reply all
Reply to author
Forward
0 new messages