0.0
No commit activity in last 3 years
No release in over 3 years
If you need to process results from a profiling session, JSON is a good place to start.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

RubyProf/JSON

This is a small project that adds a JSON printer to RubyProf to enable easy processing and querying of profiled sessions. Note that the JSON schema may change.

Usage

For now (at least), usage is limited to scripts that directly call RubyProf’s API (and not the `ruby_prof` script—I can’t see an easy way to register a new formatter without directly manipulating the script).


# Assuming `result` is a RubyProf::Result
printer = RubyProf::JsonPrinter.new(result)
printer.print(output)

Example

See the prime number example.