зеркало из https://github.com/github/memcached.git
Better Valgrind script.
This commit is contained in:
Родитель
4e4b128ce8
Коммит
23bdbb6166
2
Rakefile
2
Rakefile
|
@ -23,7 +23,7 @@ task :exceptions do
|
|||
end
|
||||
|
||||
task :valgrind do
|
||||
exec("valgrind --tool=memcheck --leak-check=yes --show-reachable=no --num-callers=15 --track-fds=yes ruby #{File.dirname(__FILE__)}/test/profile/valgrind.rb")
|
||||
exec("valgrind --tool=memcheck --leak-check=full --show-reachable=no --num-callers=15 --track-fds=yes --workaround-gcc296-bugs=yes --max-stackframe=7304328 --dsymutil=yes --track-origins=yes ruby #{File.dirname(__FILE__)}/test/profile/valgrind.rb")
|
||||
end
|
||||
|
||||
task :profile do
|
||||
|
|
|
@ -5,6 +5,8 @@ $LOAD_PATH << "#{File.dirname(__FILE__)}/../../lib/"
|
|||
require 'memcached'
|
||||
require 'rubygems'
|
||||
|
||||
GC.copy_on_write_friendly = true if GC.respond_to?("copy_on_write_friendly=")
|
||||
|
||||
class Worker
|
||||
def initialize(method_name, iterations)
|
||||
@method = method_name || 'mixed'
|
||||
|
|
Загрузка…
Ссылка в новой задаче