Class: GenProf

Inherits:
Object
  • Object
show all
Includes:
Wprof::Supports::StyleSupport
Defined in:
lib/wprof/gen_prof.rb

Instance Method Summary collapse

Methods included from Wprof::Supports::StyleSupport

#format_time

Constructor Details

#initialize(event, rec_type) ⇒ GenProf

Returns a new instance of GenProf.



4
5
6
7
8
9
10
# File 'lib/wprof/gen_prof.rb', line 4

def initialize(event, rec_type)
  @event = event
  @db_runtime = WProf::Config.get_value(:db_runtime)
  @async_report = WProf::Config.get_value(:async)
  @rec_type = rec_type
  generate_profiling
end

Instance Method Details

#generate_profilingObject



12
13
14
15
16
# File 'lib/wprof/gen_prof.rb', line 12

def generate_profiling
  generate_common_params
  generate_custom_params
  deploy_reporter
end