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
43 44 45 |
# File 'lib/memory/sampler.rb', line 43 def cache @cache end |
#class_name ⇒ Object
Returns the value of attribute class_name
43 44 45 |
# File 'lib/memory/sampler.rb', line 43 def class_name @class_name end |
#file ⇒ Object
Returns the value of attribute file
43 44 45 |
# File 'lib/memory/sampler.rb', line 43 def file @file end |
#line ⇒ Object
Returns the value of attribute line
43 44 45 |
# File 'lib/memory/sampler.rb', line 43 def line @line end |
#memsize ⇒ Object
Returns the value of attribute memsize
43 44 45 |
# File 'lib/memory/sampler.rb', line 43 def memsize @memsize end |
#retained ⇒ Object
Returns the value of attribute retained
43 44 45 |
# File 'lib/memory/sampler.rb', line 43 def retained @retained end |
#value ⇒ Object
Returns the value of attribute value
43 44 45 |
# File 'lib/memory/sampler.rb', line 43 def value @value end |
Class Method Details
.unpack(cache, fields) ⇒ Object
56 57 58 |
# File 'lib/memory/sampler.rb', line 56 def self.unpack(cache, fields) self.new(cache, *fields) end |
Instance Method Details
#gem ⇒ Object
48 49 50 |
# File 'lib/memory/sampler.rb', line 48 def gem cache.guess_gem(file) end |
#location ⇒ Object
44 45 46 |
# File 'lib/memory/sampler.rb', line 44 def location cache.lookup_location(file, line) end |
#pack ⇒ Object
52 53 54 |
# File 'lib/memory/sampler.rb', line 52 def pack [class_name, file, line, memsize, value, retained] end |