This updates ruby-prof to 0.10.6.  Seems to work fine in my simple
testing.  Notable improvements:

*New graph outputter call stack, with cool collapsible elements
  ex: http://rogerdpack.t28.net/dev/ruby-prof/examples/stack.html
* It can now profile rubygems' load time itself.
* graphviz outputter added

Tested on amd64.  I'll be committing next week unless I hear about
problems.

Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/ruby-prof/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile    20 Dec 2010 18:13:08 -0000      1.2
+++ Makefile    5 May 2011 17:22:29 -0000
@@ -3,8 +3,7 @@
 COMMENT =      fast code profiler for Ruby
 
 DISTNAME =     ruby-${PKGNAME}
-PKGNAME =      prof-0.9.2
-REVISION =     0
+PKGNAME =      prof-0.10.6
 CATEGORIES =   devel
 
 HOMEPAGE =     http://ruby-prof.rubyforge.org/
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/ruby-prof/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    20 Dec 2010 18:07:39 -0000      1.1.1.1
+++ distinfo    5 May 2011 17:22:39 -0000
@@ -1,5 +1,5 @@
-MD5 (ruby-prof-0.9.2.gem) = vTPJjYfKL0lElT543QF3VA==
-RMD160 (ruby-prof-0.9.2.gem) = WRtqgketzETcV4ukT7SErwEKUSA=
-SHA1 (ruby-prof-0.9.2.gem) = FlZWZfitKKBKyObGa2fqNCIPud0=
-SHA256 (ruby-prof-0.9.2.gem) = eFVQ4EUb8PooDeqDdWDXMnrYtJbk+nzxNo2MRtogDUg=
-SIZE (ruby-prof-0.9.2.gem) = 202240
+MD5 (ruby-prof-0.10.6.gem) = tiyDDUWDZILOWtm7OSjcZQ==
+RMD160 (ruby-prof-0.10.6.gem) = clk+2riqdwLYke4AkTecLGGdNic=
+SHA1 (ruby-prof-0.10.6.gem) = cZG8Wkwq0IyeEnowP7fk1AIxSkQ=
+SHA256 (ruby-prof-0.10.6.gem) = VuD7Ca0nneYjwCOnBMozNZTT0RVWZleDG7SC9wGtEyw=
+SIZE (ruby-prof-0.10.6.gem) = 202240
Index: patches/patch-ext_ruby_prof_extconf_rb
===================================================================
RCS file: patches/patch-ext_ruby_prof_extconf_rb
diff -N patches/patch-ext_ruby_prof_extconf_rb
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ext_ruby_prof_extconf_rb      5 May 2011 17:26:06 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+
+clock_gettime is in libc in OpenBSD.
+
+--- ext/ruby_prof/extconf.rb.orig      Thu May  5 10:25:43 2011
++++ ext/ruby_prof/extconf.rb   Thu May  5 10:25:50 2011
+@@ -40,7 +40,7 @@ def add_define(name, value = nil)
+ end
+ require 'rubygems'
+ unless Gem.win_platform? || RUBY_PLATFORM =~ /darwin/
+-  $LDFLAGS += " -lrt" # for clock_gettime
++#  $LDFLAGS += " -lrt" # for clock_gettime
+ end
+ add_define("RUBY_VERSION", RUBY_VERSION.gsub('.', ''))
+ 
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/ruby-prof/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   20 Dec 2010 18:07:39 -0000      1.1.1.1
+++ pkg/PLIST   5 May 2011 17:26:41 -0000
@@ -75,8 +75,6 @@ ${GEM_LIB}/gems/${DISTNAME}/rails/exampl
 ${GEM_LIB}/gems/${DISTNAME}/rails/profile_test_helper.rb
 ${GEM_LIB}/gems/${DISTNAME}/test/
 ${GEM_LIB}/gems/${DISTNAME}/test/aggregate_test.rb
-${GEM_LIB}/gems/${DISTNAME}/test/bad.rb
-${GEM_LIB}/gems/${DISTNAME}/test/basic2_test.rb
 ${GEM_LIB}/gems/${DISTNAME}/test/basic_test.rb
 ${GEM_LIB}/gems/${DISTNAME}/test/current_failures_windows
 ${GEM_LIB}/gems/${DISTNAME}/test/do_nothing.rb

Reply via email to