Class: RailsMemoryProfiler::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_memory_profiler/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_enabledObject

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

#enabledObject

Returns the value of attribute enabled.



3
4
5
# File 'lib/rails_memory_profiler/configuration.rb', line 3

def enabled
  @enabled
end

#ignore_controllersObject

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_pathsObject

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_objectsObject

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_rateObject

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_sizeObject

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