Skip to content

Instantly share code, notes, and snippets.

@crazymykl
Created February 21, 2013 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazymykl/5001237 to your computer and use it in GitHub Desktop.
Save crazymykl/5001237 to your computer and use it in GitHub Desktop.
patch to let rdoc -C1 parse trunk
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]
@zzak
Copy link

zzak commented Feb 22, 2013

@crazymykl What version of rdoc were you using?

Can you file a ticket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment