public
Rubygem
Description: Pedal to the metal manual profiler
Clone URL: git://github.com/nicksieger/stickshift.git
- Reduce unnecessary sleep time in test (because life is short)
- Document example task for rake -T
nicksieger (author)
Sat Mar 01 08:06:35 -0800 2008
commit  4aa50f6c86bcc6034864fed60aabce5584e34ceb
tree    1113fbd103337da994381e4785463b6471e5320c
parent  f499ca65f4179793b8b4a86fb3aa25e83d2232bd
...
3
4
5
 
6
 
 
 
7
8
9
...
3
4
5
6
7
8
9
10
11
12
13
0
@@ -3,6 +3,10 @@ require 'rake/testtask'
0
 Rake::TestTask.new
0
 task :default => :test
0
 
0
+desc "Run the instrumented rake example"
0
 task :example do
0
+ puts "# Here is the example Rakefile"
0
+ puts *(File.readlines("examples/example.rake"))
0
+ puts "# Running it"
0
   ruby "-Ilib -S rake -f examples/example.rake"
0
 end
0
\ No newline at end of file
...
1
2
3
4
5
6
7
8
9
10
11
12
...
 
1
2
3
 
4
5
6
 
7
8
9
0
@@ -1,12 +1,9 @@
0
-
0
 task :sleep => :snooze do
0
   sleep 1
0
 end
0
-
0
 task :snooze do
0
   sleep 2
0
 end
0
-
0
 task :default => :sleep
0
 
0
 require 'stickshift'
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ require 'stickshift'
0
 
0
 class Foo
0
   def slow_method
0
- sleep 0.5
0
+ sleep 0.1
0
   end
0
   def hello
0
   end

Comments

    No one has commented yet.