Class: MemoryProfiler::Stat

Inherits:
Object
  • Object
show all
Defined in:
lib/memory_profiler/stat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_name, gem, file, location, memsize, string_value) ⇒ Stat

Returns a new instance of Stat.



8
9
10
11
12
13
14
15
16
17
# File 'lib/memory_profiler/stat.rb', line 8

def initialize(class_name, gem, file, location, memsize, string_value)
  @class_name = class_name
  @gem = gem

  @file = file
  @location = location

  @memsize = memsize
  @string_value = string_value
end

Instance Attribute Details

#class_nameObject (readonly)

Returns the value of attribute class_name.



6
7
8
# File 'lib/memory_profiler/stat.rb', line 6

def class_name
  @class_name
end

#fileObject (readonly)

Returns the value of attribute file.



6
7
8
# File 'lib/memory_profiler/stat.rb', line 6

def file
  @file
end

#gemObject (readonly)

Returns the value of attribute gem.



6
7
8
# File 'lib/memory_profiler/stat.rb', line 6

def gem
  @gem
end

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/memory_profiler/stat.rb', line 6

def location
  @location
end

#memsizeObject (readonly)

Returns the value of attribute memsize.



6
7
8
# File 'lib/memory_profiler/stat.rb', line 6

def memsize
  @memsize
end

#string_valueObject (readonly)

Returns the value of attribute string_value.



6
7
8
# File 'lib/memory_profiler/stat.rb', line 6

def string_value
  @string_value
end