Class: AppProfiler::Viewer::SpeedscopeRemoteViewer::Middleware

Inherits:
BaseMiddleware
  • Object
show all
Includes:
Yarn::WithSpeedscope
Defined in:
lib/app_profiler/viewer/speedscope_remote_viewer/middleware.rb

Instance Method Summary collapse

Methods included from Yarn::WithSpeedscope

#setup_yarn

Methods included from Yarn::Command

#setup_yarn, #yarn

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