Class: Xcsize::Profiler

Inherits:
Object
  • Object
show all
Defined in:
lib/xcsize/profiler.rb

Instance Method Summary collapse

Constructor Details

#initialize(linkmap_path:, threshold:) ⇒ Profiler

Returns a new instance of Profiler.



5
6
7
8
# File 'lib/xcsize/profiler.rb', line 5

def initialize(linkmap_path:, threshold:)
  @linkmap_path = linkmap_path
  @threshold = threshold
end

Instance Method Details

#profileObject



10
11
12
13
14
15
# File 'lib/xcsize/profiler.rb', line 10

def profile
  Reader.linkmap(
    linkmap_path: @linkmap_path,
    threshold: @threshold
  )
end