Class: Vernier::Output::Cpuprofile
- Inherits:
-
Object
- Object
- Vernier::Output::Cpuprofile
- Includes:
- Vernier::OutputHelpers
- Defined in:
- lib/vernier/output/cpuprofile.rb
Instance Method Summary collapse
-
#initialize(profile) ⇒ Cpuprofile
constructor
A new instance of Cpuprofile.
- #output ⇒ Object
Methods included from Vernier::OutputHelpers
#collapse_stack_weights, #sanitize_string
Constructor Details
#initialize(profile) ⇒ Cpuprofile
Returns a new instance of Cpuprofile.
10 11 12 |
# File 'lib/vernier/output/cpuprofile.rb', line 10 def initialize(profile) @profile = profile end |
Instance Method Details
#output ⇒ Object
14 15 16 |
# File 'lib/vernier/output/cpuprofile.rb', line 14 def output JSON.generate(data) end |