Class: AppProfiler::Viewer::SpeedscopeViewer
- Inherits:
-
BaseViewer
- Object
- BaseViewer
- AppProfiler::Viewer::SpeedscopeViewer
- Defined in:
- lib/app_profiler/viewer/speedscope_viewer.rb
Defined Under Namespace
Classes: YarnError
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(profile) ⇒ SpeedscopeViewer
constructor
A new instance of SpeedscopeViewer.
- #view ⇒ Object
Constructor Details
#initialize(profile) ⇒ SpeedscopeViewer
Returns a new instance of SpeedscopeViewer.
16 17 18 |
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 16 def initialize(profile) @profile = profile end |
Class Method Details
.view(profile) ⇒ Object
11 12 13 |
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 11 def view(profile) new(profile).view end |
Instance Method Details
#view ⇒ Object
20 21 22 |
# File 'lib/app_profiler/viewer/speedscope_viewer.rb', line 20 def view yarn("run speedscope \"#{@profile.file}\"") end |