Please sign in to comment.
Adds README and example output.
- Loading branch information...
Showing with 612 additions and 0 deletions.
|@@ -0,0 +1,17 @@|
|+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.|
|+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)|
|+See "the prime number example":examples/prime.json.|
Oops, something went wrong.