Sha256: ed09a087664ed950ad5130d3e9c7497ccaf88ca8a780a084d75275aed78b9b9e

Contents?: true

Size: 578 Bytes

Versions: 16

Compression:

Stored size: 578 Bytes

Contents

#!/usr/bin/ruby

require 'logger'
require 'vips'

puts ""
puts "starting up:"

# this makes vips keep a list of all active objects which we can print out
Vips::leak_set true

# disable the operation cache
Vips::cache_set_max 0

# GLib::logger.level = Logger::DEBUG

n = 10000

n.times do |i|
    puts ""
    puts "call #{i} ..."
    out = Vips::Operation.call "black", [200, 300]
    if out.width != 200 or out.height != 300
        puts "bad image result from black"
    end
end

puts ""
puts "after #{n} calls:"
GC.start
Vips::Object::print_all

puts ""
puts "shutting down:"

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
vips-8.6.3.2 example/example2.rb
vips-8.7.0.1 example/example2.rb
ruby-vips-2.0.13 example/example2.rb
vips-8.6.3.1 example/example2.rb
vips-8.6.3 example/example2.rb
ruby-vips-2.0.12 example/example2.rb
ruby-vips-2.0.11 example/example2.rb
ruby-vips-2.0.10 example/example2.rb
ruby-vips-2.0.9 example/example2.rb
ruby-vips-2.0.8 example/example2.rb
ruby-vips-2.0.7 example/example2.rb
ruby-vips-2.0.6 example/example2.rb
ruby-vips-2.0.5 example/example2.rb
ruby-vips-2.0.4 example/example2.rb
ruby-vips-2.0.3 example/example2.rb
ruby-vips-2.0.2 example/example2.rb