Class: AppProfiler::Viewer::SpeedscopeViewer

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Yarn::WithSpeedscope

#setup_yarn

Methods included from Yarn::Command

#setup_yarn, #yarn

Constructor Details

#initialize(profile) ⇒ SpeedscopeViewer

Returns a new instance of SpeedscopeViewer.



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

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

Class Method Details

.view(profile) ⇒ Object



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

def view(profile)
  new(profile).view
end

Instance Method Details

#viewObject



22
23
24
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 22

def view
  yarn("run", "speedscope", @profile.file.to_s)
end