Sha256: 7f5da0cac6a960c437529ebe4e50c6f8c360e6b50ea79d750950ce2f299521de
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
# frozen_string_literal: true require "memory_profiler" require "base64" def deserialize_hash(data) Marshal.load(Base64.urlsafe_decode64(data)) if data end options = deserialize_hash(ENV["MEMORY_PROFILER_OPTIONS"]) || {} at_exit do report = MemoryProfiler.stop report.pretty_print(**options) end MemoryProfiler.start(options)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
memory_profiler-1.0.2 | lib/memory_profiler/autorun.rb |