Browse files

adopted patch from ebigart

  • Loading branch information...
1 parent c799edc commit c85f4da12cdbda17374b41ac8f0715b09fcb2a82 @rubyredrick committed Sep 4, 2009
Showing with 45,697 additions and 2 deletions.
  1. +2 −2 Rakefile
  2. +43 −0 performance/empty_propval/subject.rb
  3. +45,650 −0 performance_data/empty_propval.calltree
  4. +2 −0 script/profile_subject
View
4 Rakefile
@@ -5,7 +5,7 @@
#require File.dirname(__FILE__) + '/lib/ri_cal'
require 'rubygems'
-gem 'hoe', '>= 2.1.0'
+gem 'hoe', '>=2.1.0'
require 'hoe'
require 'fileutils'
require './lib/ri_cal'
@@ -23,7 +23,7 @@ $hoe = Hoe.spec('ri_cal') do |p|
p.readme_file = "README.txt"
p.extra_dev_deps = [
['newgem', ">= #{::Newgem::VERSION}"],
- 'ruby-prof'
+ ['ruby-prof', ">= 0"]
]
p.clean_globs |= %w[**/.DS_Store tmp *.log]
View
43 performance/empty_propval/subject.rb
@@ -0,0 +1,43 @@
+class Subject
+ def initialize(out=STDOUT)
+ cals = RiCal.parse_string <<-END_OF_DATA
+BEGIN:VCALENDAR
+METHOD:REQUEST
+PRODID:Microsoft CDO for Microsoft Exchange
+VERSION:2.0
+BEGIN:VTIMEZONE
+TZID:(GMT-05.00) Eastern Time (US & Canada)
+X-MICROSOFT-CDO-TZID:10
+BEGIN:STANDARD
+DTSTART:16010101T020000
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=11;BYDAY=1SU
+END:STANDARD
+BEGIN:DAYLIGHT
+DTSTART:16010101T020000
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=2SU
+END:DAYLIGHT
+END:VTIMEZONE
+BEGIN:VEVENT
+DTSTAMP:20090724T143205Z
+DTSTART;TZID="(GMT-05.00) Eastern Time (US & Canada)":20090804T120000
+SUMMARY:FW: ALL HANDS MEETING
+DTEND;TZID="(GMT-05.00) Eastern Time (US & Canada)":20090804T133000
+DESCRIPTION:Some event
+END:VEVENT
+END:VCALENDAR
+END_OF_DATA
+
+ cal = cals.first
+ @event = cal.events.first
+ end
+
+ def run
+ puts "start"
+ @event.dtstart
+ puts "done"
+ end
+end
View
45,650 performance_data/empty_propval.calltree
45,650 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2 script/profile_subject
@@ -20,7 +20,9 @@ result = RubyProf.profile do
end
out_file = File.expand_path(File.join(File.dirname(__FILE__), %w[.. performance_data], "#{subject_name}.calltree"))
+puts "out_file is #{out_file}"
printer = RubyProf::CallTreePrinter.new(result)
+puts "got printer"
File.open(out_file, 'w') do |f|
printer.print(f)

0 comments on commit c85f4da

Please sign in to comment.