Class: RSpec::Core::Formatters::ProfileFormatter Private
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/profile_formatter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Formatter for providing profile output.
Instance Attribute Summary collapse
- #output ⇒ Object readonly private
Instance Method Summary collapse
-
#dump_profile(profile) ⇒ Object
This method is invoked after the dumping the summary if profiling is enabled.
-
#initialize(output) ⇒ ProfileFormatter
constructor
private
A new instance of ProfileFormatter.
Constructor Details
#initialize(output) ⇒ ProfileFormatter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ProfileFormatter.
11 12 13 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/profile_formatter.rb', line 11 def initialize(output) @output = output end |
Instance Attribute Details
#output ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/profile_formatter.rb', line 16 def output @output end |
Instance Method Details
#dump_profile(profile) ⇒ Object
This method is invoked after the dumping the summary if profiling is enabled.
25 26 27 28 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/formatters/profile_formatter.rb', line 25 def dump_profile(profile) dump_profile_slowest_examples(profile) dump_profile_slowest_example_groups(profile) end |