Class: AppProfiler::Viewer::SpeedscopeRemoteViewer::Middleware
- Inherits:
-
BaseMiddleware
- Object
- BaseMiddleware
- AppProfiler::Viewer::SpeedscopeRemoteViewer::Middleware
- Includes:
- Yarn::WithSpeedscope
- Defined in:
- lib/app_profiler/viewer/speedscope_remote_viewer/middleware.rb
Instance Method Summary collapse
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
Methods included from Yarn::WithSpeedscope
Methods included from Yarn::Command
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
12 13 14 15 16 17 |
# File 'lib/app_profiler/viewer/speedscope_remote_viewer/middleware.rb', line 12 def initialize(app) super @speedscope = Rack::File.new( File.join(AppProfiler.root, "node_modules/speedscope/dist/release"), ) end |