Class: Whysoslow::MemoryProfile::Snapshot
- Inherits:
-
Object
- Object
- Whysoslow::MemoryProfile::Snapshot
- Defined in:
- lib/whysoslow/memory_profile.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
Instance Method Summary collapse
-
#initialize(label, divider) ⇒ Snapshot
constructor
A new instance of Snapshot.
Constructor Details
#initialize(label, divider) ⇒ Snapshot
Returns a new instance of Snapshot.
27 28 29 30 |
# File 'lib/whysoslow/memory_profile.rb', line 27 def initialize(label, divider) @label = label @memory = capture_memory_usage(divider) end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
25 26 27 |
# File 'lib/whysoslow/memory_profile.rb', line 25 def label @label end |
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
25 26 27 |
# File 'lib/whysoslow/memory_profile.rb', line 25 def memory @memory end |