Class: AppProfiler::Viewer::SpeedscopeViewer
- Inherits:
-
BaseViewer
- Object
- BaseViewer
- AppProfiler::Viewer::SpeedscopeViewer
- Includes:
- Yarn::WithSpeedscope
- Defined in:
- lib/app_profiler/viewer/speedscope_viewer.rb
Instance Method Summary collapse
-
#initialize(profile) ⇒ SpeedscopeViewer
constructor
A new instance of SpeedscopeViewer.
- #view(_params = {}) ⇒ Object
Methods included from Yarn::WithSpeedscope
Methods included from Yarn::Command
#setup_yarn, #valid_commands, #yarn, #yarn_setup, #yarn_setup=
Methods inherited from BaseViewer
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 |