lib/ruby-prof/test.rb in ruby-prof-0.8.2 vs lib/ruby-prof/test.rb in ruby-prof-0.9.0
- old
+ new
@@ -13,11 +13,11 @@
:output_dir => Dir.pwd }
def output_dir
PROFILE_OPTIONS[:output_dir]
end
-
+
def run(result)
return if @method_name.to_s == "default_test"
yield(self.class::STARTED, name)
@_result = result
@@ -106,11 +106,11 @@
end
def report_profile(data, measure_mode)
PROFILE_OPTIONS[:printers].each do |printer_klass|
printer = printer_klass.new(data)
-
+
# Makes sure the output directory exits
FileUtils.mkdir_p(output_dir)
# Open the file
file_name = report_filename(printer, measure_mode)
@@ -143,6 +143,6 @@
when RubyProf::ALLOCATIONS; 'allocations'
else "measure#{measure_mode}"
end
end
end
-end
\ No newline at end of file
+end