Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

make rake clean better

  • Loading branch information...
commit f549b3b4f9091904546cac739b042c640da291b9 1 parent 496fed8
Roger Pack authored December 31, 2009
3  Rakefile
@@ -158,5 +158,8 @@ task :clean do
158 158
     system("make clean")
159 159
     FileUtils.rm 'Makefile'
160 160
   end
  161
+  Dir.glob('*~') do |file|
  162
+    FileUtils.rm file
  163
+  end
161 164
  end
162 165
 end
18  benchmarks/benchmark.rb~
... ...
@@ -1,18 +0,0 @@
1  
-require 'ruby-prof'
2  
-require 'benchmark'
3  
-
4  
-def go
5  
-end
6  
-
7  
-puts Benchmark.realtime {
8  
- RubyProf.profile do
9  
-  100000.times { go }
10  
- end
11  
-}
12  
-
13  
-100.times { Thread.new { sleep }}
14  
-puts Benchmark.realtime {
15  
- RubyProf.profile do
16  
-   100000.times { go }
17  
- end
18  
-}
2  ext/ruby_prof.h
@@ -73,7 +73,7 @@ typedef rb_event_t rb_event_flag_t;
73 73
 
74 74
 /* ================  Measurement  =================*/
75 75
 #ifdef HAVE_LONG_LONG
76  
-typedef unsigned LONG_LONG prof_measure_t;
  76
+typedef unsigned LONG_LONG prof_measure_t; // long long is 8 bytes on 32-bit
77 77
 #else
78 78
 typedef unsigned long prof_measure_t;
79 79
 #endif

0 notes on commit f549b3b

Please sign in to comment.
Something went wrong with that request. Please try again.