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
memcached-1.3.3 test/profile/c_profiler.rb
memcached-1.3.2 test/profile/c_profiler.rb
memcached-1.3.1 test/profile/c_profiler.rb
memcached-1.3 test/profile/c_profiler.rb
couchbase-memcached-1.2.9 test/profile/c_profiler.rb
couchbase-memcached-1.2.8 test/profile/c_profiler.rb
memcached-1.2.7 test/profile/c_profiler.rb
memcached-1.2.6 test/profile/c_profiler.rb
memcached-1.2.6.pre2 test/profile/c_profiler.rb
memcached-1.2.6.pre test/profile/c_profiler.rb
memcached-1.2.5 test/profile/c_profiler.rb
memcached-1.2.4.pre test/profile/c_profiler.rb
memcached-1.2.3 test/profile/c_profiler.rb
memcached-1.2.2 test/profile/c_profiler.rb
memcached-1.2.1 test/profile/c_profiler.rb
memcached-1.2 test/profile/c_profiler.rb
memcached-1.1.3 test/profile/c_profiler.rb
memcached-1.1.2 test/profile/c_profiler.rb
memcached-1.1.1 test/profile/c_profiler.rb