Generate RBI for StackProf
This commit is contained in:
parent
6415ae6739
commit
aea54a9ceb
88
Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.23.rbi
Normal file
88
Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.23.rbi
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
# 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`.
|
||||||
|
|
||||||
|
module StackProf
|
||||||
|
class << self
|
||||||
|
def results(*_arg0); end
|
||||||
|
def run(*_arg0); end
|
||||||
|
def running?; end
|
||||||
|
def sample; end
|
||||||
|
def start(*_arg0); end
|
||||||
|
def stop; end
|
||||||
|
def use_postponed_job!; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackProf::Middleware
|
||||||
|
def initialize(app, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
def call(env); end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
def enabled; end
|
||||||
|
def enabled=(_arg0); end
|
||||||
|
def enabled?(env); end
|
||||||
|
def interval; end
|
||||||
|
def interval=(_arg0); end
|
||||||
|
def metadata; end
|
||||||
|
def metadata=(_arg0); end
|
||||||
|
def mode; end
|
||||||
|
def mode=(_arg0); end
|
||||||
|
def path; end
|
||||||
|
def path=(_arg0); end
|
||||||
|
def raw; end
|
||||||
|
def raw=(_arg0); end
|
||||||
|
def save; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackProf::Report
|
||||||
|
def initialize(data); end
|
||||||
|
|
||||||
|
def +(other); end
|
||||||
|
def add_lines(a, b); end
|
||||||
|
def convert_to_d3_flame_graph_format(name, stacks, depth); end
|
||||||
|
def data; end
|
||||||
|
def files; end
|
||||||
|
def flamegraph_row(f, x, y, weight, addr); end
|
||||||
|
def flamegraph_stacks(raw); end
|
||||||
|
def frames(sort_by_total = T.unsafe(nil)); end
|
||||||
|
def max_samples; end
|
||||||
|
def modeline; end
|
||||||
|
def normalized_frames; end
|
||||||
|
def overall_samples; end
|
||||||
|
def print_alphabetical_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
||||||
|
def print_callgrind(f = T.unsafe(nil)); end
|
||||||
|
def print_d3_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
||||||
|
def print_debug; end
|
||||||
|
def print_dump(f = T.unsafe(nil)); end
|
||||||
|
def print_file(filter, f = T.unsafe(nil)); end
|
||||||
|
def print_files(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), f = T.unsafe(nil)); end
|
||||||
|
def print_flamegraph(f, skip_common, alphabetical = T.unsafe(nil)); end
|
||||||
|
def print_graphviz(options = T.unsafe(nil), f = T.unsafe(nil)); end
|
||||||
|
def print_json(f = T.unsafe(nil)); end
|
||||||
|
def print_method(name, f = T.unsafe(nil)); end
|
||||||
|
def print_stackcollapse; end
|
||||||
|
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
|
||||||
|
def print_timeline_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
||||||
|
def version; end
|
||||||
|
def walk_method(name); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def callers_for(addr); end
|
||||||
|
def root_frames; end
|
||||||
|
def source_display(f, file, lines, range = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
def from_file(file); end
|
||||||
|
def from_json(json); end
|
||||||
|
def parse_json(json); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
StackProf::Report::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
|
||||||
|
StackProf::VERSION = T.let(T.unsafe(nil), String)
|
||||||
@ -1,243 +0,0 @@
|
|||||||
# 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`.
|
|
||||||
|
|
||||||
# Note that since `stackprof` is not managed in a `Gemfile`, we can't put this in the `sorbet/rbi/gems` folder.
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof.rb#11
|
|
||||||
module StackProf
|
|
||||||
class << self
|
|
||||||
def results(*_arg0); end
|
|
||||||
def run(*_arg0); end
|
|
||||||
|
|
||||||
# @return [Boolean]
|
|
||||||
def running?; end
|
|
||||||
|
|
||||||
def sample; end
|
|
||||||
def start(*_arg0); end
|
|
||||||
def stop; end
|
|
||||||
def use_postponed_job!; end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#4
|
|
||||||
class StackProf::Middleware
|
|
||||||
# @return [Middleware] a new instance of Middleware
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#5
|
|
||||||
def initialize(app, options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#20
|
|
||||||
def call(env); end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
# Returns the value of attribute enabled.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def enabled; end
|
|
||||||
|
|
||||||
# Sets the attribute enabled
|
|
||||||
#
|
|
||||||
# @param value the value to set the attribute enabled to.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def enabled=(_arg0); end
|
|
||||||
|
|
||||||
# @return [Boolean]
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#42
|
|
||||||
def enabled?(env); end
|
|
||||||
|
|
||||||
# Returns the value of attribute interval.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def interval; end
|
|
||||||
|
|
||||||
# Sets the attribute interval
|
|
||||||
#
|
|
||||||
# @param value the value to set the attribute interval to.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def interval=(_arg0); end
|
|
||||||
|
|
||||||
# Returns the value of attribute metadata.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def metadata; end
|
|
||||||
|
|
||||||
# Sets the attribute metadata
|
|
||||||
#
|
|
||||||
# @param value the value to set the attribute metadata to.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def metadata=(_arg0); end
|
|
||||||
|
|
||||||
# Returns the value of attribute mode.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def mode; end
|
|
||||||
|
|
||||||
# Sets the attribute mode
|
|
||||||
#
|
|
||||||
# @param value the value to set the attribute mode to.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def mode=(_arg0); end
|
|
||||||
|
|
||||||
# Returns the value of attribute path.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def path; end
|
|
||||||
|
|
||||||
# Sets the attribute path
|
|
||||||
#
|
|
||||||
# @param value the value to set the attribute path to.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def path=(_arg0); end
|
|
||||||
|
|
||||||
# Returns the value of attribute raw.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def raw; end
|
|
||||||
|
|
||||||
# Sets the attribute raw
|
|
||||||
#
|
|
||||||
# @param value the value to set the attribute raw to.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#40
|
|
||||||
def raw=(_arg0); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/middleware.rb#50
|
|
||||||
def save; end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#8
|
|
||||||
class StackProf::Report
|
|
||||||
# @return [Report] a new instance of Report
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#42
|
|
||||||
def initialize(data); end
|
|
||||||
|
|
||||||
# @raise [ArgumentError]
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#618
|
|
||||||
def +(other); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#92
|
|
||||||
def add_lines(a, b); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#212
|
|
||||||
def convert_to_d3_flame_graph_format(name, stacks, depth); end
|
|
||||||
|
|
||||||
# Returns the value of attribute data.
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#45
|
|
||||||
def data; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#80
|
|
||||||
def files; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#205
|
|
||||||
def flamegraph_row(f, x, y, weight, addr); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#187
|
|
||||||
def flamegraph_stacks(raw); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#47
|
|
||||||
def frames(sort_by_total = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#76
|
|
||||||
def max_samples; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#68
|
|
||||||
def modeline; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#52
|
|
||||||
def normalized_frames; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#72
|
|
||||||
def overall_samples; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#128
|
|
||||||
def print_alphabetical_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#495
|
|
||||||
def print_callgrind(f = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#242
|
|
||||||
def print_d3_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#99
|
|
||||||
def print_debug; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#103
|
|
||||||
def print_dump(f = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#610
|
|
||||||
def print_file(filter, f = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#600
|
|
||||||
def print_files(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), f = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#132
|
|
||||||
def print_flamegraph(f, skip_common, alphabetical = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#414
|
|
||||||
def print_graphviz(options = T.unsafe(nil), f = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#107
|
|
||||||
def print_json(f = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#526
|
|
||||||
def print_method(name, f = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#112
|
|
||||||
def print_stackcollapse; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#476
|
|
||||||
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
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#124
|
|
||||||
def print_timeline_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#64
|
|
||||||
def version; end
|
|
||||||
|
|
||||||
# Walk up and down the stack from a given starting point (name). Loops
|
|
||||||
# until `:exit` is selected
|
|
||||||
#
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#561
|
|
||||||
def walk_method(name); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#669
|
|
||||||
def callers_for(addr); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#665
|
|
||||||
def root_frames; end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#674
|
|
||||||
def source_display(f, file, lines, range = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#12
|
|
||||||
def from_file(file); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#20
|
|
||||||
def from_json(json); end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#24
|
|
||||||
def parse_json(json); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof/report.rb#9
|
|
||||||
StackProf::Report::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
# source://stackprof//lib/stackprof.rb#12
|
|
||||||
StackProf::VERSION = T.let(T.unsafe(nil), String)
|
|
||||||
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
# typed: false
|
# typed: false
|
||||||
|
|
||||||
module ::StackProf; end
|
|
||||||
module T::InterfaceWrapper::Helpers; end
|
module T::InterfaceWrapper::Helpers; end
|
||||||
module T::Private::Abstract::Hooks; end
|
module T::Private::Abstract::Hooks; end
|
||||||
module T::Private::Methods::MethodHooks; end
|
module T::Private::Methods::MethodHooks; end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user