Class: Memory::Allocation
- Inherits:
-
Struct
- Object
- Struct
- Memory::Allocation
- Defined in:
- lib/memory/sampler.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#memsize ⇒ Object
Returns the value of attribute memsize.
-
#retained ⇒ Object
Returns the value of attribute retained.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache
36 37 38 |
# File 'lib/memory/sampler.rb', line 36 def cache @cache end |
#class_name ⇒ Object
Returns the value of attribute class_name
36 37 38 |
# File 'lib/memory/sampler.rb', line 36 def class_name @class_name end |
#file ⇒ Object
Returns the value of attribute file
36 37 38 |
# File 'lib/memory/sampler.rb', line 36 def file @file end |
#line ⇒ Object
Returns the value of attribute line
36 37 38 |
# File 'lib/memory/sampler.rb', line 36 def line @line end |
#memsize ⇒ Object
Returns the value of attribute memsize
36 37 38 |
# File 'lib/memory/sampler.rb', line 36 def memsize @memsize end |
#retained ⇒ Object
Returns the value of attribute retained
36 37 38 |
# File 'lib/memory/sampler.rb', line 36 def retained @retained end |
#value ⇒ Object
Returns the value of attribute value
36 37 38 |
# File 'lib/memory/sampler.rb', line 36 def value @value end |
Class Method Details
.unpack(cache, fields) ⇒ Object
49 50 51 |
# File 'lib/memory/sampler.rb', line 49 def self.unpack(cache, fields) self.new(cache, *fields) end |
Instance Method Details
#gem ⇒ Object
41 42 43 |
# File 'lib/memory/sampler.rb', line 41 def gem cache.guess_gem(file) end |
#location ⇒ Object
37 38 39 |
# File 'lib/memory/sampler.rb', line 37 def location cache.lookup_location(file, line) end |
#pack ⇒ Object
45 46 47 |
# File 'lib/memory/sampler.rb', line 45 def pack [class_name, file, line, memsize, value, retained] end |