Created
February 21, 2013 01:41
-
-
Save crazymykl/5001237 to your computer and use it in GitHub Desktop.
patch to let rdoc -C1 parse trunk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/profiler.rb b/lib/profiler.rb | |
index be33daf..22f3490 100644 | |
--- a/lib/profiler.rb | |
+++ b/lib/profiler.rb | |
@@ -76,7 +76,7 @@ module Profiler__ | |
@@start = nil # the start time that profiling began | |
@@stacks = nil # the map of stacks keyed by thread | |
@@maps = nil # the map of call data keyed by thread, class and id. Call data contains the call count, total time, | |
- PROFILE_CALL_PROC = TracePoint.new(*%i[call c_call b_call]) {|tp| # :nodoc: | |
+ PROFILE_CALL_PROC = TracePoint.new(:call, :c_call, :b_call) {|tp| # :nodoc: | |
now = Process.times[0] | |
stack = (@@stacks[Thread.current] ||= []) | |
stack.push [now, 0.0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@crazymykl What version of rdoc were you using?
Can you file a ticket?