Project

General

Profile

Actions

Feature #7436

open

Allow for a "granularity" flag for backtrace_locations

Added by sam.saffron (Sam Saffron) over 11 years ago. Updated over 6 years ago.

Status:
Assigned
Target version:
-
[ruby-core:50094]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0