Class: AppProfiler::Viewer::SpeedscopeRemoteViewer
- Inherits:
-
BaseViewer
- Object
- BaseViewer
- AppProfiler::Viewer::SpeedscopeRemoteViewer
- Defined in:
- lib/app_profiler/viewer/speedscope_remote_viewer.rb,
lib/app_profiler/viewer/speedscope_remote_viewer/middleware.rb,
lib/app_profiler/viewer/speedscope_remote_viewer/base_middleware.rb
Defined Under Namespace
Classes: Middleware
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(profile) ⇒ SpeedscopeRemoteViewer
constructor
A new instance of SpeedscopeRemoteViewer.
- #view ⇒ Object
Constructor Details
#initialize(profile) ⇒ SpeedscopeRemoteViewer
Returns a new instance of SpeedscopeRemoteViewer.
15 16 17 18 |
# File 'lib/app_profiler/viewer/speedscope_remote_viewer.rb', line 15 def initialize(profile) super() @profile = profile end |
Class Method Details
.view(profile) ⇒ Object
10 11 12 |
# File 'lib/app_profiler/viewer/speedscope_remote_viewer.rb', line 10 def view(profile) new(profile).view end |
Instance Method Details
#view ⇒ Object
20 21 22 23 |
# File 'lib/app_profiler/viewer/speedscope_remote_viewer.rb', line 20 def view id = Middleware.id(@profile.file) AppProfiler.logger.info("[Profiler] Profile available at /app_profiler/#{id}\n") end |