Sha256: b0231149f03c66c34dbc466a253f4cae5738fa4573b8450c632366f09a292c2b

Contents?: true

Size: 877 Bytes

Versions: 15

Compression:

Stored size: 877 Bytes

Contents

module Steep
  VERSION: String

  def self.logger: () -> (Logger & ActiveSupport::TaggedLogging)

  def self.new_logger: (IO output, Integer? prev_level) -> (Logger & ActiveSupport::TaggedLogging)

  attr_accessor self.log_output: IO

  def self.measure: [A] (String message, ?level: ::Symbol) { () -> A } -> A

  def self.log_error: (Exception exn, ?message: ::String) -> void

  self.@logger: (Logger & ActiveSupport::TaggedLogging)?

  class Sampler
    type sample = [String, Float]
    @samples: Array[sample]

    def initialize: () -> void

    def sample: [A] (String message) { () -> A } -> A

    def count: () -> Integer

    def total: () -> Float

    def slowests: (Integer num) -> Array[sample]

    def average: () -> Float

    def percentile: (Integer p) -> Float
  end

  def self.measure2: [A] (String message, ?level: ::Symbol) { (Sampler) -> A } -> A
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
steep-1.6.0 sig/steep.rbs
steep-1.6.0.pre.4 sig/steep.rbs
steep-1.6.0.pre.3 sig/steep.rbs
steep-1.6.0.pre.2 sig/steep.rbs
steep-1.6.0.pre.1 sig/steep.rbs
steep-1.5.3 sig/steep.rbs
steep-1.5.2 sig/steep.rbs
steep-1.5.1 sig/steep.rbs
steep-1.5.0 sig/steep.rbs
steep-1.5.0.pre.6 sig/steep.rbs
steep-1.5.0.pre.5 sig/steep.rbs
steep-1.5.0.pre.4 sig/steep.rbs
steep-1.5.0.pre.3 sig/steep.rbs
steep-1.5.0.pre.2 sig/steep.rbs
steep-1.5.0.pre.1 sig/steep.rbs