Sha256: d9a968c24ca03a779d218ba7466ca00d4b904b53acca4533503c9da1b8f9a4f9
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.expand_path('../lib', File.dirname(__FILE__)) require 'jpeg' puts Process.pid file = File.expand_path('samples/sample.jpg', File.dirname(__FILE__)) [10, 100, 1000].each do |n| n.times do @jpeg = Jpeg.open(file).raw_data end @jpeg = nil GC.start puts "#{n} times" puts `pmap -x #{Process.pid} | tail -n 1` # puts `lsof -p #{Process.pid}` end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jpeg-0.7.0 | spec/leak_test.rb |