Sha256: 7223e674a1b547f40601704e12e51fb97e2f43e0a187685d51ddaff1abd479d1

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

# frozen_string_literal: true

require "memory_profiler/version"
require "memory_profiler/helpers"
require "memory_profiler/polychrome"
require "memory_profiler/monochrome"
require "memory_profiler/top_n"
require "memory_profiler/stat"
require "memory_profiler/stat_hash"
require "memory_profiler/results"
require "memory_profiler/reporter"

module MemoryProfiler
  def self.report(opts = {}, &block)
    Reporter.report(opts, &block)
  end

  def self.start(opts = {})
    unless Reporter.current_reporter
      Reporter.current_reporter = Reporter.new(opts)
      Reporter.current_reporter.start
    end
  end

  def self.stop
    Reporter.current_reporter.stop if Reporter.current_reporter
  ensure
    Reporter.current_reporter = nil
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/memory_profiler-0.9.14/lib/memory_profiler.rb
memory_profiler-0.9.14 lib/memory_profiler.rb