Method: Hotch::Memory::Report::Line.from_result
- Defined in:
- lib/hotch/memory.rb
.from_result(result, ignore_paths) ⇒ Object
[
[path, lineno, type],
[count, old_count, total_age, min_age, max_age, total_memsize]
]
154 155 156 157 158 159 160 |
# File 'lib/hotch/memory.rb', line 154 def self.from_result(result, ignore_paths) path, line, *args = result.flatten(1) return if ignore_paths.any? { |ip| ip == path || ip === path } filename = "#{strip_path(path)}:#{line}" new(filename, *args) end |