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.


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

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


4
5
6
# File 'lib/memory_profiler/stat.rb', line 4

def class_name
  @class_name
end

#fileObject (readonly)

Returns the value of attribute file


4
5
6
# File 'lib/memory_profiler/stat.rb', line 4

def file
  @file
end

#gemObject (readonly)

Returns the value of attribute gem


4
5
6
# File 'lib/memory_profiler/stat.rb', line 4

def gem
  @gem
end

#locationObject (readonly)

Returns the value of attribute location


4
5
6
# File 'lib/memory_profiler/stat.rb', line 4

def location
  @location
end

#memsizeObject (readonly)

Returns the value of attribute memsize


4
5
6
# File 'lib/memory_profiler/stat.rb', line 4

def memsize
  @memsize
end

#string_valueObject (readonly)

Returns the value of attribute string_value


4
5
6
# File 'lib/memory_profiler/stat.rb', line 4

def string_value
  @string_value
end