Sha256: 2e6220287a697a6ffb42d99166772e294e0001270cf94e0a0296867aa5cdc58d
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true require "objspace" require "fileutils" require "heap_profiler/version" require "heap_profiler/reporter" module HeapProfiler Error = Class.new(StandardError) class << self attr_accessor :current_reporter def start(dir) return if current_reporter self.current_reporter = Reporter.new(dir) current_reporter.start end def stop current_reporter&.stop end def report(dir, &block) Reporter.new(dir).run(&block) end end end
Version data entries
4 entries across 4 versions & 1 rubygems