Class: AppProfiler::StackprofProfile

Inherits:
BaseProfile show all
Defined in:
lib/app_profiler/profile/stackprof.rb

Constant Summary collapse

FILE_EXTENSION =
".json"

Instance Attribute Summary

Attributes inherited from BaseProfile

#context, #id

Instance Method Summary collapse

Methods inherited from BaseProfile

#enqueue_upload, #file, from_stackprof, from_vernier, #initialize, #metadata, #to_h, #upload, #valid?

Constructor Details

This class inherits a constructor from AppProfiler::BaseProfile

Instance Method Details

#formatObject



11
12
13
# File 'lib/app_profiler/profile/stackprof.rb', line 11

def format
  FILE_EXTENSION
end

#modeObject



7
8
9
# File 'lib/app_profiler/profile/stackprof.rb', line 7

def mode
  @data[:mode]
end

#view(params = {}) ⇒ Object



15
16
17
# File 'lib/app_profiler/profile/stackprof.rb', line 15

def view(params = {})
  AppProfiler.viewer.view(self, **params)
end