Sha256: 4695d25cdd290954e633bdec6810b2d9d5cd378ef08d6d3e67e9011bb38172b9

Contents?: true

Size: 590 Bytes

Versions: 39

Compression:

Stored size: 590 Bytes

Contents

require "#{File.dirname(__FILE__)}/../setup"

$LOAD_PATH << "#{File.dirname(__FILE__)}/../../lib/"
require 'memcached'

profile = "/tmp/memcached_#{Memcached::VERSION}_c"

system("env CPUPROFILE_FREQUENCY=500 CPUPROFILE=#{profile}.out DYLD_INSERT_LIBRARIES=/opt/local/lib/libprofiler.dylib ruby -r#{File.dirname(__FILE__)}/exercise -e \"Worker.new('mixed', 200000).work\"")

ruby = `which ruby`.chomp

system("pprof --nodefraction=0.0000001 --text #{ruby} #{profile}.out")
system("pprof --nodefraction=0.0000001 --pdf #{ruby} #{profile}.out > #{profile}.pdf")
system("open #{profile}.pdf")

Version data entries

39 entries across 39 versions & 4 rubygems

Version Path
vinted-memcached-1.8.4 test/profile/c_profiler.rb
vinted-memcached-1.8.3 test/profile/c_profiler.rb
vinted-memcached-1.8.2 test/profile/c_profiler.rb
vinted-memcached-1.8.0 test/profile/c_profiler.rb
dalli_memcached-1.8.0 test/profile/c_profiler.rb
memcached-1.8.0 test/profile/c_profiler.rb
memcached-1.7.2 test/profile/c_profiler.rb
memcached-1.7.0 test/profile/c_profiler.rb
memcached-1.6.1 test/profile/c_profiler.rb
memcached-1.6.0 test/profile/c_profiler.rb
memcached-1.5.1 test/profile/c_profiler.rb
memcached-1.5.0 test/profile/c_profiler.rb
memcached-1.4.6 test/profile/c_profiler.rb
memcached-1.4.5 test/profile/c_profiler.rb
memcached-1.4.3 test/profile/c_profiler.rb
memcached-1.4.2 test/profile/c_profiler.rb
memcached-1.4.1 test/profile/c_profiler.rb
memcached-1.3.7 test/profile/c_profiler.rb
memcached-1.3.5 test/profile/c_profiler.rb
memcached-1.3.4 test/profile/c_profiler.rb