Class: AppProfiler::Viewer::SpeedscopeViewer
- Inherits:
-
BaseViewer
- Object
- BaseViewer
- AppProfiler::Viewer::SpeedscopeViewer
- Includes:
- Yarn::WithSpeedscope
- Defined in:
- lib/app_profiler/viewer/speedscope_viewer.rb
Class Method Summary collapse
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
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, params = {}) ⇒ Object
12 13 14 |
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 12 def view(profile, params = {}) new(profile).view(**params) end |
Instance Method Details
#view(_params = {}) ⇒ Object
22 23 24 |
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 22 def view(_params = {}) yarn("run", "speedscope", @profile.file.to_s) end |