Update RBI files for ruby-prof.

Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
This commit is contained in:
BrewTestBot 2023-12-15 19:00:10 +00:00
parent d3d46a57e6
commit f555f1ec21
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
2 changed files with 120 additions and 70 deletions

View File

@ -22,25 +22,28 @@ class Rack::RubyProf
# source://ruby-prof//lib/ruby-prof/rack.rb#6 # source://ruby-prof//lib/ruby-prof/rack.rb#6
def initialize(app, options = T.unsafe(nil)); end def initialize(app, options = T.unsafe(nil)); end
# source://ruby-prof//lib/ruby-prof/rack.rb#23 # source://ruby-prof//lib/ruby-prof/rack.rb#22
def call(env); end def call(env); end
private private
# @return [Boolean] # @return [Boolean]
# #
# source://ruby-prof//lib/ruby-prof/rack.rb#52 # source://ruby-prof//lib/ruby-prof/rack.rb#56
def paths_match?(path, paths); end def paths_match?(path, paths); end
# source://ruby-prof//lib/ruby-prof/rack.rb#74 # source://ruby-prof//lib/ruby-prof/rack.rb#84
def print(data, path); end def print(profile, path); end
# source://ruby-prof//lib/ruby-prof/rack.rb#56 # source://ruby-prof//lib/ruby-prof/rack.rb#77
def print_options; end
# source://ruby-prof//lib/ruby-prof/rack.rb#60
def profiling_options; end def profiling_options; end
# @return [Boolean] # @return [Boolean]
# #
# source://ruby-prof//lib/ruby-prof/rack.rb#46 # source://ruby-prof//lib/ruby-prof/rack.rb#50
def should_profile?(path); end def should_profile?(path); end
end end
@ -49,6 +52,36 @@ end
# source://ruby-prof//lib/ruby-prof/version.rb#1 # source://ruby-prof//lib/ruby-prof/version.rb#1
module RubyProf module RubyProf
class << self class << self
# source://ruby-prof//lib/ruby-prof/compatibility.rb#32
def _deprecated_exclude_threads; end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#37
def _deprecated_exclude_threads=(value); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#14
def _deprecated_measure_mode; end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#27
def _deprecated_measure_mode=(value); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#49
def _deprecated_pause; end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#78
def _deprecated_profile(options = T.unsafe(nil), &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#64
def _deprecated_resume; end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#55
def _deprecated_running?; end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#42
def _deprecated_start; end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#70
def _deprecated_stop; end
# @raise [RuntimeError] # @raise [RuntimeError]
# #
# source://ruby-prof//lib/ruby-prof/compatibility.rb#96 # source://ruby-prof//lib/ruby-prof/compatibility.rb#96
@ -60,14 +93,10 @@ module RubyProf
def ensure_running!; end def ensure_running!; end
# Returns the threads that ruby-prof should exclude from profiling # Returns the threads that ruby-prof should exclude from profiling
# def exclude_threads(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#32
def exclude_threads; end
# Specifies which threads ruby-prof should exclude from profiling # Specifies which threads ruby-prof should exclude from profiling
# def exclude_threads=(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#37
def exclude_threads=(value); end
# Checks if the user specified the clock mode via # Checks if the user specified the clock mode via
# the RUBY_PROF_MEASURE_MODE environment variable # the RUBY_PROF_MEASURE_MODE environment variable
@ -84,9 +113,7 @@ module RubyProf
# * RubyProf::PROCESS_TIME # * RubyProf::PROCESS_TIME
# * RubyProf::ALLOCATIONS # * RubyProf::ALLOCATIONS
# * RubyProf::MEMORY # * RubyProf::MEMORY
# def measure_mode(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#14
def measure_mode; end
# call-seq: # call-seq:
# measure_mode=value -> void # measure_mode=value -> void
@ -97,44 +124,30 @@ module RubyProf
# * RubyProf::PROCESS_TIME - Process time measures the time used by a process between any two moments. It is unaffected by other processes concurrently running on the system. Remember with process time that calls to methods like sleep will not be included in profiling results. On Windows, process time is measured using GetProcessTimes and on other platforms by clock_gettime. # * RubyProf::PROCESS_TIME - Process time measures the time used by a process between any two moments. It is unaffected by other processes concurrently running on the system. Remember with process time that calls to methods like sleep will not be included in profiling results. On Windows, process time is measured using GetProcessTimes and on other platforms by clock_gettime.
# * RubyProf::ALLOCATIONS - Object allocations measures show how many objects each method in a program allocates. Measurements are done via Ruby's GC.stat api. # * RubyProf::ALLOCATIONS - Object allocations measures show how many objects each method in a program allocates. Measurements are done via Ruby's GC.stat api.
# * RubyProf::MEMORY - Memory measures how much memory each method in a program uses. Measurements are done via Ruby's TracePoint api. # * RubyProf::MEMORY - Memory measures how much memory each method in a program uses. Measurements are done via Ruby's TracePoint api.
# def measure_mode=(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#27
def measure_mode=(value); end
# Pauses profiling # Pauses profiling
# def pause(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#49
def pause; end
# Profiles a block # Profiles a block
# def profile(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#78
def profile(options = T.unsafe(nil), &block); end
# Resume profiling # Resume profiling
# def resume(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#64
def resume; end
# Is a profile running? # Is a profile running?
# #
# @return [Boolean] # @return [Boolean]
# def running?(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#55
def running?; end
# Starts profiling # Starts profiling
# def start(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#42
def start; end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#85 # source://ruby-prof//lib/ruby-prof/compatibility.rb#85
def start_script(script); end def start_script(script); end
# Stops profiling # Stops profiling
# def stop(*args, **_arg1, &block); end
# source://ruby-prof//lib/ruby-prof/compatibility.rb#70
def stop; end
end end
end end
@ -185,7 +198,7 @@ class RubyProf::AbstractPrinter
# options - Hash of print options. Note that each printer can # options - Hash of print options. Note that each printer can
# define its own set of options. # define its own set of options.
# #
# :min_percent - Number 0 to 100 that specifes the minimum # :min_percent - Number 0 to 100 that specifies the minimum
# %self (the methods self time divided by the # %self (the methods self time divided by the
# overall total time) that a method must take # overall total time) that a method must take
# for it to be printed out in the report. # for it to be printed out in the report.
@ -237,8 +250,6 @@ class RubyProf::AbstractPrinter
end end
end end
class RubyProf::AggregateCallTree < ::RubyProf::CallTree; end
class RubyProf::Allocation class RubyProf::Allocation
def _dump_data; end def _dump_data; end
def _load_data(_arg0); end def _load_data(_arg0); end
@ -385,6 +396,8 @@ end
# #
# source://ruby-prof//lib/ruby-prof/call_tree.rb#8 # source://ruby-prof//lib/ruby-prof/call_tree.rb#8
class RubyProf::CallTree class RubyProf::CallTree
def initialize(_arg0); end
# Compares two CallTree instances. The comparison is based on the CallTree#parent, CallTree#target, # Compares two CallTree instances. The comparison is based on the CallTree#parent, CallTree#target,
# and total time. # and total time.
# #
@ -393,6 +406,7 @@ class RubyProf::CallTree
def _dump_data; end def _dump_data; end
def _load_data(_arg0); end def _load_data(_arg0); end
def add_child(_arg0); end
# The number of times the parent method called the target method # The number of times the parent method called the target method
# #
@ -442,46 +456,43 @@ end
# #
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#11 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#11
class RubyProf::CallTreePrinter < ::RubyProf::AbstractPrinter class RubyProf::CallTreePrinter < ::RubyProf::AbstractPrinter
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#103
def base_name; end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#12 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#12
def calltree_name(method_info); end def calltree_name(method_info); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#78 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#76
def convert(value); end def convert(value); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#28 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#28
def determine_event_specification_and_value_scale; end def determine_event_specification_and_value_scale; end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#82 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#80
def file(method); end def file(method); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#113 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#107
def file_name_for_thread(thread); end def file_name_for_thread(thread); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#121 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#115
def file_path_for_thread(thread); end def file_path_for_thread(thread); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#95 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#93
def path; end def path; end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#54 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#54
def print(options = T.unsafe(nil)); end def print(options = T.unsafe(nil)); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#125 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#119
def print_headers(output, thread); end def print_headers(output, thread); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#131 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#125
def print_method(output, method); end def print_method(output, method); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#86 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#84
def print_thread(thread); end def print_thread(thread); end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#69 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#69
def print_threads; end def print_threads; end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#107 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#101
def remove_subsidiary_files_from_previous_profile_runs; end def remove_subsidiary_files_from_previous_profile_runs; end
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#61 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#61
@ -490,7 +501,7 @@ class RubyProf::CallTreePrinter < ::RubyProf::AbstractPrinter
class << self class << self
# @return [Boolean] # @return [Boolean]
# #
# source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#99 # source://ruby-prof//lib/ruby-prof/printers/call_tree_printer.rb#97
def needs_dir?; end def needs_dir?; end
end end
end end
@ -680,7 +691,7 @@ class RubyProf::GraphHtmlPrinter < ::RubyProf::AbstractPrinter
include ::ERB::Util include ::ERB::Util
# Creates a link to a method. Note that we do not create # Creates a link to a method. Note that we do not create
# links to methods which are under the min_perecent # links to methods which are under the min_percent
# specified by the user, since they will not be # specified by the user, since they will not be
# printed out. # printed out.
# #
@ -755,6 +766,8 @@ class RubyProf::Measure::WallTime; end
# #
# source://ruby-prof//lib/ruby-prof/measurement.rb#4 # source://ruby-prof//lib/ruby-prof/measurement.rb#4
class RubyProf::Measurement class RubyProf::Measurement
def initialize(_arg0, _arg1, _arg2, _arg3); end
def _dump_data; end def _dump_data; end
def _load_data(_arg0); end def _load_data(_arg0); end
def called; end def called; end
@ -766,13 +779,21 @@ class RubyProf::Measurement
# source://ruby-prof//lib/ruby-prof/measurement.rb#13 # source://ruby-prof//lib/ruby-prof/measurement.rb#13
def inspect; end def inspect; end
def merge!(_arg0); end
def self_time; end def self_time; end
def self_time=(_arg0); end
# source://ruby-prof//lib/ruby-prof/measurement.rb#9 # source://ruby-prof//lib/ruby-prof/measurement.rb#9
def to_s; end def to_s; end
def total_time; end def total_time; end
def total_time=(_arg0); end
def wait_time; end def wait_time; end
def wait_time=(_arg0); end
private
def initialize_copy(_arg0); end
end end
# The MethodInfo class is used to track information about each method that is profiled. # The MethodInfo class is used to track information about each method that is profiled.
@ -782,11 +803,14 @@ end
class RubyProf::MethodInfo class RubyProf::MethodInfo
include ::Comparable include ::Comparable
# :enddoc: def initialize(_arg0, _arg1); end
#
# source://ruby-prof//lib/ruby-prof/method_info.rb#56 # source://ruby-prof//lib/ruby-prof/method_info.rb#63
def <=>(other); end def <=>(other); end
# source://ruby-prof//lib/ruby-prof/method_info.rb#59
def ==(other); end
def _dump_data; end def _dump_data; end
def _load_data(_arg0); end def _load_data(_arg0); end
def allocations; end def allocations; end
@ -802,6 +826,11 @@ class RubyProf::MethodInfo
# source://ruby-prof//lib/ruby-prof/method_info.rb#51 # source://ruby-prof//lib/ruby-prof/method_info.rb#51
def children_time; end def children_time; end
# @return [Boolean]
#
# source://ruby-prof//lib/ruby-prof/method_info.rb#55
def eql?(other); end
# Returns the full name of a class. The interpretation of method names is: # Returns the full name of a class. The interpretation of method names is:
# #
# * MyObject#test - An method defined in a class # * MyObject#test - An method defined in a class
@ -812,6 +841,7 @@ class RubyProf::MethodInfo
# source://ruby-prof//lib/ruby-prof/method_info.rb#15 # source://ruby-prof//lib/ruby-prof/method_info.rb#15
def full_name; end def full_name; end
def hash; end
def klass_flags; end def klass_flags; end
def klass_name; end def klass_name; end
def line; end def line; end
@ -826,7 +856,7 @@ class RubyProf::MethodInfo
def source_file; end def source_file; end
# source://ruby-prof//lib/ruby-prof/method_info.rb#74 # source://ruby-prof//lib/ruby-prof/method_info.rb#81
def to_s; end def to_s; end
# The total time this method took - includes self time + wait time + child time # The total time this method took - includes self time + wait time + child time
@ -840,6 +870,12 @@ class RubyProf::MethodInfo
def wait_time; end def wait_time; end
end end
RubyProf::MethodInfo::CLASS_SINGLETON = T.let(T.unsafe(nil), Integer)
RubyProf::MethodInfo::MODULE_INCLUDEE = T.let(T.unsafe(nil), Integer)
RubyProf::MethodInfo::MODULE_SINGLETON = T.let(T.unsafe(nil), Integer)
RubyProf::MethodInfo::OBJECT_SINGLETON = T.let(T.unsafe(nil), Integer)
RubyProf::MethodInfo::OTHER_SINGLETON = T.let(T.unsafe(nil), Integer)
# Helper class to simplify printing profiles of several types from # Helper class to simplify printing profiles of several types from
# one profiling run. Currently prints a flat profile, a callgrind # one profiling run. Currently prints a flat profile, a callgrind
# profile, a call stack profile and a graph profile. # profile, a call stack profile and a graph profile.
@ -931,29 +967,46 @@ class RubyProf::Profile
def _dump_data; end def _dump_data; end
def _load_data(_arg0); end def _load_data(_arg0); end
def add_thread(_arg0); end
# Hides methods that, when represented as a call graph, have # Hides methods that, when represented as a call graph, have
# extremely large in and out degrees and make navigation impossible. # extremely large in and out degrees and make navigation impossible.
# #
# source://ruby-prof//lib/ruby-prof/profile.rb#23 # source://ruby-prof//lib/ruby-prof/profile.rb#22
def exclude_common_methods!; end def exclude_common_methods!; end
def exclude_method!(_arg0, _arg1); end def exclude_method!(_arg0, _arg1); end
# source://ruby-prof//lib/ruby-prof/profile.rb#27 # source://ruby-prof//lib/ruby-prof/profile.rb#26
def exclude_methods!(mod, *method_or_methods); end def exclude_methods!(mod, *method_names); end
# source://ruby-prof//lib/ruby-prof/profile.rb#33 # source://ruby-prof//lib/ruby-prof/profile.rb#32
def exclude_singleton_methods!(mod, *method_or_methods); end def exclude_singleton_methods!(mod, *method_names); end
def measure_mode; end def measure_mode; end
# source://ruby-prof//lib/ruby-prof/profile.rb#8 # source://ruby-prof//lib/ruby-prof/profile.rb#7
def measure_mode_string; end def measure_mode_string; end
# call-seq:
# merge! -> self
#
# Merges RubyProf threads whose root call_trees reference the same target method. This is useful
# when profiling code that uses a main thread/fiber to distribute work to multiple workers.
# If there are tens or hundreds of workers, viewing results per worker thread/fiber can be
# overwhelming. Using +merge!+ will combine the worker times together into one result.
#
# Note the reported time will be much greater than the actual wall time. For example, if there
# are 10 workers that each run for 5 seconds, merged results will show one thread that
# ran for 50 seconds.
#
# source://ruby-prof//lib/ruby-prof/profile.rb#48
def merge!; end
def pause; end def pause; end
def paused?; end def paused?; end
def profile; end def profile; end
def remove_thread(_arg0); end
def resume; end def resume; end
def running?; end def running?; end
def start; end def start; end
@ -968,11 +1021,14 @@ end
# source://ruby-prof//lib/ruby-prof/thread.rb#2 # source://ruby-prof//lib/ruby-prof/thread.rb#2
class RubyProf::Thread class RubyProf::Thread
def initialize(_arg0, _arg1, _arg2); end
def _dump_data; end def _dump_data; end
def _load_data(_arg0); end def _load_data(_arg0); end
def call_tree; end def call_tree; end
def fiber_id; end def fiber_id; end
def id; end def id; end
def merge!(_arg0); end
def methods; end def methods; end
# Returns the total time this thread was executed. # Returns the total time this thread was executed.

View File

@ -8109,12 +8109,6 @@ module Reline
VERSION = ::T.let(nil, ::T.untyped) VERSION = ::T.let(nil, ::T.untyped)
end end
class Reline::ANSI
CAPNAME_KEY_BINDINGS = ::T.let(nil, ::T.untyped)
END_BRACKETED_PASTE = ::T.let(nil, ::T.untyped)
START_BRACKETED_PASTE = ::T.let(nil, ::T.untyped)
end
class Reline::Config class Reline::Config
KEYSEQ_PATTERN = ::T.let(nil, ::T.untyped) KEYSEQ_PATTERN = ::T.let(nil, ::T.untyped)
VARIABLE_NAMES = ::T.let(nil, ::T.untyped) VARIABLE_NAMES = ::T.let(nil, ::T.untyped)
@ -8125,7 +8119,7 @@ class Reline::Core
ATTR_READER_NAMES = ::T.let(nil, ::T.untyped) ATTR_READER_NAMES = ::T.let(nil, ::T.untyped)
end end
Reline::IOGate = Reline::ANSI Reline::IOGate = Reline::GeneralIO
Reline::Key = Struct::Key Reline::Key = Struct::Key