Permalink
Browse files

make rake clean better

  • Loading branch information...
1 parent 496fed8 commit f549b3b4f9091904546cac739b042c640da291b9 @rdp rdp committed Dec 31, 2009
Showing with 4 additions and 19 deletions.
  1. +3 −0 Rakefile
  2. +0 −18 benchmarks/benchmark.rb~
  3. +1 −1 ext/ruby_prof.h
View
3 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
View
18 benchmarks/benchmark.rb~
@@ -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
-}
View
2 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

0 comments on commit f549b3b

Please sign in to comment.