Class: Vernier::Output::Cpuprofile

Inherits:
Object
  • Object
show all
Defined in:
lib/vernier/output/cpuprofile.rb

Instance Method Summary collapse

Constructor Details

#initialize(profile) ⇒ Cpuprofile



6
7
8
# File 'lib/vernier/output/cpuprofile.rb', line 6

def initialize(profile)
  @profile = profile
end

Instance Method Details

#outputObject



10
11
12
# File 'lib/vernier/output/cpuprofile.rb', line 10

def output
  JSON.generate(data)
end