lib/pf2/serve.rb in pf2-0.5.2 vs lib/pf2/serve.rb in pf2-0.6.0

- old
+ new

@@ -26,10 +26,10 @@ server.mount_proc('/profile') do |req, res| profile = Pf2.stop profile = JSON.parse(profile, symbolize_names: true, max_nesting: false) res.header['Content-Type'] = 'application/json' res.header['Access-Control-Allow-Origin'] = '*' - res.body = JSON.generate(Pf2::Reporter.new((profile)).emit) + res.body = JSON.generate(Pf2::Reporter::FirefoxProfiler.new((profile)).emit) Pf2.start end Pf2.start