Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (41 sloc) 1.003 kb
require 'appraisal'
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
spec.ruby_opts = "-Ilib"
end
desc "run tests"
task :default => :spec
desc "test all appraisals"
task :all do
sh("bundle exec rake appraisal:install") &&
sh("bundle exec rake appraisal:redis2-1") &&
sh("bundle exec rake appraisal:redis2-2") &&
sh("bundle exec rake appraisal:excon0-5") &&
sh("bundle exec rake appraisal:excon0-6")
end
def parse_monitor
monitor = Daikon::Monitor.new(nil, nil)
File.open("monitor.log", "r") do |f|
until f.eof?
monitor.parse(f.readline)
end
end
end
desc "benchmark monitor.log against the monitor parsing"
task :bench do
require 'benchmark'
Benchmark.bm do |bm|
bm.report do
parse_monitor
end
end
end
desc "perf tools the monitor.log"
task :perf do
require 'perftools'
PerfTools::CpuProfiler.start("daikon.profile") do
parse_monitor
end
end
Jump to Line
Something went wrong with that request. Please try again.