<commit_before># JRuby::Profiler::FlameGraphProfilePrinter

This is a JRuby Profiler Printer that will dump a profile into a form for usage with FlameGraph.
It only builds a FlameGraph of the thread that wraps the profiler, because I'm not sure the JRuby
profiler will let you do that.

## Installation

    $ gem install jruby-profiler-flame_graph_profile_printer

## Example

```ruby
require "jruby/profiler/flame_graph_profile_printer"

def ok
  3 ** 3
end

def test
  ok ** 3
end

result = JRuby::Profiler.profile do
  # Do some expensive stuff.
  10_000.times do
     test ** 3
  end
end

printer = JRuby::Profiler::FlameGraphProfilePrinter.new(result)
printer.printProfile(STDOUT)<commit_msg>Re-word readme<commit_after># JRuby::Profiler::FlameGraphProfilePrinter

This is a JRuby Profiler Printer that will dump a profile into a form for usage with FlameGraph.
It only builds a FlameGraph from the thread that wraps the profiler, because I'm not sure the JRuby
profiler supports multiple threads right now.

## Installation

    $ gem install jruby-profiler-flame_graph_profile_printer

## Example

```ruby
require "jruby/profiler/flame_graph_profile_printer"

def ok
  3 ** 3
end

def test
  ok ** 3
end

result = JRuby::Profiler.profile do
  # Do some expensive stuff.
  10_000.times do
     test ** 3
  end
end

printer = JRuby::Profiler::FlameGraphProfilePrinter.new(result)
printer.printProfile(STDOUT)
{'fraction_non_alphanumeric': 0.07142857142857142, 'fraction_numerical': 0.01272984441301273, 'mean_word_length': 4.592885375494071, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1286035', 'n_tokens_mistral': 503, 'n_tokens_neox': 467, 'n_words': 156}