factory_inspector 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/factory_inspector/version.rb +1 -1
- data/lib/factory_inspector.rb +3 -3
- metadata +1 -1
data/lib/factory_inspector.rb
CHANGED
@@ -21,10 +21,10 @@ module FactoryInspector
|
|
21
21
|
file = File.open(output_filename, 'w')
|
22
22
|
|
23
23
|
file.write "FACTORY INSPECTOR - #{@reports.values.size} FACTORIES USED\n"
|
24
|
-
file.write " FACTORY NAME
|
25
|
-
file.write "
|
24
|
+
file.write " FACTORY NAME TOTAL OVERALL TIME PER LONGEST STRATEGIES\n"
|
25
|
+
file.write " CALLS TIME (s) CALL (s) CALL (s) \n"
|
26
26
|
@reports.sort_by{ |name,report| report.time_per_call_in_seconds }.reverse.each do |report_name, report|
|
27
|
-
line = sprintf(" %-
|
27
|
+
line = sprintf(" %-30.30s % 5.0d %8.4f %5.5f %5.4f %s\n",
|
28
28
|
report.factory_name,
|
29
29
|
report.calls,
|
30
30
|
report.total_time_in_seconds,
|