Class: RailsMemoryProfiler::Configuration
- Inherits:
-
Object
- Object
- RailsMemoryProfiler::Configuration
- Defined in:
- lib/rails_memory_profiler/configuration.rb
Instance Attribute Summary collapse
-
#dashboard_enabled ⇒ Object
Returns the value of attribute dashboard_enabled.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#ignore_controllers ⇒ Object
Returns the value of attribute ignore_controllers.
-
#ignore_paths ⇒ Object
Returns the value of attribute ignore_paths.
-
#min_allocated_objects ⇒ Object
Returns the value of attribute min_allocated_objects.
-
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
-
#store_size ⇒ Object
Returns the value of attribute store_size.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 |
# File 'lib/rails_memory_profiler/configuration.rb', line 6 def initialize @enabled = Rails.env.development? @sample_rate = 1 @store_size = 100 @dashboard_enabled = Rails.env.development? @min_allocated_objects = 0 @ignore_paths = [] @ignore_controllers = [] end |
Instance Attribute Details
#dashboard_enabled ⇒ Object
Returns the value of attribute dashboard_enabled.
3 4 5 |
# File 'lib/rails_memory_profiler/configuration.rb', line 3 def dashboard_enabled @dashboard_enabled end |
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/rails_memory_profiler/configuration.rb', line 3 def enabled @enabled end |
#ignore_controllers ⇒ Object
Returns the value of attribute ignore_controllers.
3 4 5 |
# File 'lib/rails_memory_profiler/configuration.rb', line 3 def ignore_controllers @ignore_controllers end |
#ignore_paths ⇒ Object
Returns the value of attribute ignore_paths.
3 4 5 |
# File 'lib/rails_memory_profiler/configuration.rb', line 3 def ignore_paths @ignore_paths end |
#min_allocated_objects ⇒ Object
Returns the value of attribute min_allocated_objects.
3 4 5 |
# File 'lib/rails_memory_profiler/configuration.rb', line 3 def min_allocated_objects @min_allocated_objects end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
3 4 5 |
# File 'lib/rails_memory_profiler/configuration.rb', line 3 def sample_rate @sample_rate end |
#store_size ⇒ Object
Returns the value of attribute store_size.
3 4 5 |
# File 'lib/rails_memory_profiler/configuration.rb', line 3 def store_size @store_size end |