From f549b3b4f9091904546cac739b042c640da291b9 Mon Sep 17 00:00:00 2001 From: rdp Date: Thu, 31 Dec 2009 14:10:26 -0700 Subject: [PATCH] make rake clean better --- Rakefile | 3 +++ benchmarks/benchmark.rb~ | 18 ------------------ ext/ruby_prof.h | 2 +- 3 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 benchmarks/benchmark.rb~ diff --git a/Rakefile b/Rakefile index 4fae7a70..308a6522 100644 --- a/Rakefile +++ b/Rakefile @@ -158,5 +158,8 @@ task :clean do system("make clean") FileUtils.rm 'Makefile' end + Dir.glob('*~') do |file| + FileUtils.rm file + end end end \ No newline at end of file diff --git a/benchmarks/benchmark.rb~ b/benchmarks/benchmark.rb~ deleted file mode 100644 index 7b0b535d..00000000 --- a/benchmarks/benchmark.rb~ +++ /dev/null @@ -1,18 +0,0 @@ -require 'ruby-prof' -require 'benchmark' - -def go -end - -puts Benchmark.realtime { - RubyProf.profile do - 100000.times { go } - end -} - -100.times { Thread.new { sleep }} -puts Benchmark.realtime { - RubyProf.profile do - 100000.times { go } - end -} diff --git a/ext/ruby_prof.h b/ext/ruby_prof.h index cd6a1eb7..b8bd6df0 100644 --- a/ext/ruby_prof.h +++ b/ext/ruby_prof.h @@ -73,7 +73,7 @@ typedef rb_event_t rb_event_flag_t; /* ================ Measurement =================*/ #ifdef HAVE_LONG_LONG -typedef unsigned LONG_LONG prof_measure_t; +typedef unsigned LONG_LONG prof_measure_t; // long long is 8 bytes on 32-bit #else typedef unsigned long prof_measure_t; #endif