ruby-changes:28793
From: zzak <ko1@a...>
Date: Mon, 20 May 2013 08:04:46 +0900 (JST)
Subject: [ruby-changes:28793] zzak:r40845 (trunk): * lib/profiler.rb: Document Profiler__ methods
zzak 2013-05-20 08:04:36 +0900 (Mon, 20 May 2013) New Revision: 40845 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40845 Log: * lib/profiler.rb: Document Profiler__ methods Modified files: trunk/ChangeLog trunk/lib/profiler.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 40844) +++ ChangeLog (revision 40845) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon May 20 08:03:51 2013 Zachary Scott <zachary@z...> + + * lib/profiler.rb: Document Profiler__ methods + Mon May 20 08:02:13 2013 Zachary Scott <zachary@z...> * lib/tempfile.rb: nodoc Tempfile#inspect Index: lib/profiler.rb =================================================================== --- lib/profiler.rb (revision 40844) +++ lib/profiler.rb (revision 40845) @@ -96,6 +96,9 @@ module Profiler__ https://github.com/ruby/ruby/blob/trunk/lib/profiler.rb#L96 end } module_function + # Starts the profiler. + # + # See Profiler__ for more information. def start_profile @@start = Process.times[0] @@stacks = {} @@ -103,10 +106,16 @@ module_function https://github.com/ruby/ruby/blob/trunk/lib/profiler.rb#L106 PROFILE_CALL_PROC.enable PROFILE_RETURN_PROC.enable end + # Stops the profiler. + # + # See Profiler__ for more information. def stop_profile PROFILE_CALL_PROC.disable PROFILE_RETURN_PROC.disable end + # Outputs the results from the profiler. + # + # See Profiler__ for more information. def print_profile(f) stop_profile total = Process.times[0] - @@start -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/