Class: AppProfiler::Viewer::SpeedscopeRemoteViewer

Inherits:
BaseViewer
  • Object
show all
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

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

#viewObject



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