From: "sam.saffron (Sam Saffron)" Date: 2012-11-26T07:08:15+09:00 Subject: [ruby-core:50096] [ruby-trunk - Bug #7436] Allow for a "granularity" flag for backtrace_locations Issue #7436 has been updated by sam.saffron (Sam Saffron). ouch, this was meant to be a feature req not a bug ... cant figure out how to change ---------------------------------------- Bug #7436: Allow for a "granularity" flag for backtrace_locations https://bugs.ruby-lang.org/issues/7436#change-33876 Author: sam.saffron (Sam Saffron) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: 2.0 related to http://bugs.ruby-lang.org/issues/7051 Sometimes one need less information (or more information) associated with backtraces. It would be nice if one could send in a separate flag informing the VM about the granularity of information required, eg: caller_locations(0,-current_depth, BacktraceInfo::Label & BacktraceInfo::Lineno) This allows for one to take quicker backtraces if they need less information, additionally BacktraceInfo::Bindings and BacktraceInfo::Klass could be added which allow you to gather more information for heavy profiling / diagnostics. -- http://bugs.ruby-lang.org/