Class: AppProfiler::Viewer::SpeedscopeViewer

Inherits:
BaseViewer
  • Object
show all
Includes:
Yarn::WithSpeedscope
Defined in:
lib/app_profiler/viewer/speedscope_viewer.rb

Instance Method Summary collapse

Methods included from Yarn::WithSpeedscope

#setup_yarn

Methods included from Yarn::Command

#setup_yarn, #valid_commands, #yarn, #yarn_setup, #yarn_setup=

Methods inherited from BaseViewer

remote?, view

Constructor Details

#initialize(profile) ⇒ SpeedscopeViewer

Returns a new instance of SpeedscopeViewer.



11
12
13
14
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 11

def initialize(profile)
  super()
  @profile = profile
end

Instance Method Details

#view(_params = {}) ⇒ Object



16
17
18
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 16

def view(_params = {})
  yarn("run", "speedscope", @profile.file.to_s)
end