Sha256: 2ba451f77094a49cd4ca3d8825f69fff738d49b2acc00d3da5b027559bb5b083

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

require 'memprof2'

##############
Memprof2.start
12.times{ "abc" }
Memprof2.report
Memprof2.stop


##############
Memprof2.start
10.times{ $last_str = "abc" }

puts '=== Before GC'
Memprof2.report

puts '=== After GC'
GC.start
Memprof2.report

Memprof2.stop

#############
Memprof2.run do
  100.times{ "abc" }
  100.times{ 1.23 + 1 }
  100.times{ Module.new }
  Memprof2.report(out: "example.out")
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
memprof2-0.1.1 example.rb
memprof2-0.1.0 example.rb
memprof2-0.0.2 example.rb
memprof2-0.0.1 example.rb