Method: GenProf#initialize

Defined in:
lib/wprof/gen_prof.rb

#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