Module: TestProf::EventProf::Printers::Json
- Extended by:
- Base
- Defined in:
- lib/test_prof/event_prof/printers/json.rb
Overview
:nodoc: all
Constant Summary
Constants included from Logging
Class Method Summary collapse
Methods included from Logging
Class Method Details
.dump(profilers) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/test_prof/event_prof/printers/json.rb', line 15 def dump(profilers) data = [] profilers.each { |profiler| data << convert_results(profiler) } outpath = TestProf.artifact_path("event-prof.json") File.write(outpath, data.to_json) log :info, "EventProf results to JSON: #{outpath}" end |