class RubyProf::CallStackPrinter
def print(output = STDOUT, title: "ruby-prof call stack", threshold: 1.0,
Also accepts min_percent:, max_percent:, filter_by:, and sort_method:
as it appears on the report.
application: - a String to override the name of the application,
Default value is 10.0
exceeds it.
results that are expanded, if the percent_total
expansion: - a float from 0 to 100 that sets the threshold of
Default value is 1.0
results displayed.
threshold: - a float from 0 to 100 that sets the threshold of
title of the report.
title: - a String to override the default "ruby-prof call stack"
Keyword arguments:
output - Any IO object, including STDOUT or a file.
Specify print options.
def print(output = STDOUT, title: "ruby-prof call stack", threshold: 1.0, expansion: 10.0, application: $PROGRAM_NAME, min_percent: 0, max_percent: 100, filter_by: :self_time, sort_method: nil, max_depth: nil, **) @min_percent = min_percent @max_percent = max_percent @filter_by = filter_by @sort_method = sort_method @max_depth = max_depth @title = title @threshold = threshold @expansion = expansion @application = application output << ERB.new(self.template).result(binding) end