Class: AppProfiler::Viewer::FirefoxViewer

Inherits:
BaseViewer
  • Object
show all
Includes:
Exec
Defined in:
lib/app_profiler/viewer/firefox_viewer.rb

Defined Under Namespace

Classes: ProfileViewerError

Constant Summary collapse

CHILD_PIDS =
[]

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseViewer

remote?

Constructor Details

#initialize(profile) ⇒ FirefoxViewer

Returns a new instance of FirefoxViewer.



38
39
40
41
# File 'lib/app_profiler/viewer/firefox_viewer.rb', line 38

def initialize(profile)
  super()
  @profile = profile
end

Class Method Details

.view(profile, params = {}) ⇒ Object



29
30
31
# File 'lib/app_profiler/viewer/firefox_viewer.rb', line 29

def view(profile, params = {})
  new(profile).view(**params)
end

Instance Method Details

#valid_commandsObject



34
35
36
# File 'lib/app_profiler/viewer/firefox_viewer.rb', line 34

def valid_commands
  VALID_COMMANDS
end

#view(_params = {}) ⇒ Object



43
44
45
# File 'lib/app_profiler/viewer/firefox_viewer.rb', line 43

def view(_params = {})
  profile_viewer(@profile.file.to_s)
end