brew/Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.26.rbi

242 lines
6.8 KiB
Plaintext
Raw Normal View History

2023-03-18 16:29:12 -07:00
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `stackprof` gem.
# Please instead update this file by running `bin/tapioca gem stackprof`.
# source://stackprof//lib/stackprof.rb#20
2023-03-18 16:29:12 -07:00
module StackProf
class << self
def results(*_arg0); end
def run(*_arg0); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
2023-03-18 16:29:12 -07:00
def running?; end
2023-12-14 15:34:15 +00:00
2023-03-18 16:29:12 -07:00
def sample; end
def start(*_arg0); end
def stop; end
def use_postponed_job!; end
end
end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/middleware.rb#4
2023-03-18 16:29:12 -07:00
class StackProf::Middleware
2023-12-14 15:34:15 +00:00
# @return [Middleware] a new instance of Middleware
#
# source://stackprof//lib/stackprof/middleware.rb#5
2023-03-18 16:29:12 -07:00
def initialize(app, options = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/middleware.rb#20
2023-03-18 16:29:12 -07:00
def call(env); end
class << self
2023-12-14 15:34:15 +00:00
# Returns the value of attribute enabled.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def enabled; end
2023-12-14 15:34:15 +00:00
# Sets the attribute enabled
#
# @param value the value to set the attribute enabled to.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def enabled=(_arg0); end
2023-12-14 15:34:15 +00:00
# @return [Boolean]
#
# source://stackprof//lib/stackprof/middleware.rb#42
2023-03-18 16:29:12 -07:00
def enabled?(env); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute interval.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def interval; end
2023-12-14 15:34:15 +00:00
# Sets the attribute interval
#
# @param value the value to set the attribute interval to.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def interval=(_arg0); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute metadata.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def metadata; end
2023-12-14 15:34:15 +00:00
# Sets the attribute metadata
#
# @param value the value to set the attribute metadata to.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def metadata=(_arg0); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute mode.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def mode; end
2023-12-14 15:34:15 +00:00
# Sets the attribute mode
#
# @param value the value to set the attribute mode to.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def mode=(_arg0); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute path.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def path; end
2023-12-14 15:34:15 +00:00
# Sets the attribute path
#
# @param value the value to set the attribute path to.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def path=(_arg0); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute raw.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def raw; end
2023-12-14 15:34:15 +00:00
# Sets the attribute raw
#
# @param value the value to set the attribute raw to.
#
# source://stackprof//lib/stackprof/middleware.rb#40
2023-03-18 16:29:12 -07:00
def raw=(_arg0); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/middleware.rb#50
2023-03-18 16:29:12 -07:00
def save; end
end
end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#8
2023-03-18 16:29:12 -07:00
class StackProf::Report
2023-12-14 15:34:15 +00:00
# @return [Report] a new instance of Report
#
# source://stackprof//lib/stackprof/report.rb#42
2023-03-18 16:29:12 -07:00
def initialize(data); end
2023-12-14 15:34:15 +00:00
# @raise [ArgumentError]
#
# source://stackprof//lib/stackprof/report.rb#618
2023-03-18 16:29:12 -07:00
def +(other); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#92
2023-03-18 16:29:12 -07:00
def add_lines(a, b); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#212
2023-03-18 16:29:12 -07:00
def convert_to_d3_flame_graph_format(name, stacks, depth); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute data.
#
# source://stackprof//lib/stackprof/report.rb#45
2023-03-18 16:29:12 -07:00
def data; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#80
2023-03-18 16:29:12 -07:00
def files; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#205
2023-03-18 16:29:12 -07:00
def flamegraph_row(f, x, y, weight, addr); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#187
2023-03-18 16:29:12 -07:00
def flamegraph_stacks(raw); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#47
2023-03-18 16:29:12 -07:00
def frames(sort_by_total = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#76
2023-03-18 16:29:12 -07:00
def max_samples; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#68
2023-03-18 16:29:12 -07:00
def modeline; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#52
2023-03-18 16:29:12 -07:00
def normalized_frames; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#72
2023-03-18 16:29:12 -07:00
def overall_samples; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#128
2023-03-18 16:29:12 -07:00
def print_alphabetical_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#495
2023-03-18 16:29:12 -07:00
def print_callgrind(f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#242
2023-03-18 16:29:12 -07:00
def print_d3_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#99
2023-03-18 16:29:12 -07:00
def print_debug; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#103
2023-03-18 16:29:12 -07:00
def print_dump(f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#610
2023-03-18 16:29:12 -07:00
def print_file(filter, f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#600
2023-03-18 16:29:12 -07:00
def print_files(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#132
2023-03-18 16:29:12 -07:00
def print_flamegraph(f, skip_common, alphabetical = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#414
2023-03-18 16:29:12 -07:00
def print_graphviz(options = T.unsafe(nil), f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#107
2023-03-18 16:29:12 -07:00
def print_json(f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#526
2023-03-18 16:29:12 -07:00
def print_method(name, f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#112
2023-03-18 16:29:12 -07:00
def print_stackcollapse; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#476
2023-03-18 16:29:12 -07:00
def print_text(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), select_files = T.unsafe(nil), reject_files = T.unsafe(nil), select_names = T.unsafe(nil), reject_names = T.unsafe(nil), f = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#124
2023-03-18 16:29:12 -07:00
def print_timeline_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#64
2023-03-18 16:29:12 -07:00
def version; end
2023-12-14 15:34:15 +00:00
# Walk up and down the stack from a given starting point (name). Loops
# until `:exit` is selected
#
# source://stackprof//lib/stackprof/report.rb#561
2023-03-18 16:29:12 -07:00
def walk_method(name); end
private
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#669
2023-03-18 16:29:12 -07:00
def callers_for(addr); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#665
2023-03-18 16:29:12 -07:00
def root_frames; end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#674
2023-03-18 16:29:12 -07:00
def source_display(f, file, lines, range = T.unsafe(nil)); end
class << self
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#12
2023-03-18 16:29:12 -07:00
def from_file(file); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#20
2023-03-18 16:29:12 -07:00
def from_json(json); end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#24
2023-03-18 16:29:12 -07:00
def parse_json(json); end
end
end
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof/report.rb#9
2023-03-18 16:29:12 -07:00
StackProf::Report::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
2023-12-14 15:34:15 +00:00
# source://stackprof//lib/stackprof.rb#21
2023-03-18 16:29:12 -07:00
StackProf::VERSION = T.let(T.unsafe(nil), String)