Sha256: 4ddc04e3979f482d74651d404d806a49538514377238404f2cc70a5e3973f51e

Contents?: true

Size: 332 Bytes

Versions: 10

Compression:

Stored size: 332 Bytes

Contents

$LOAD_PATH.unshift File.expand_path '../lib'
require File.expand_path('../../lib/flamegraph', __FILE__)

def ack(m, n)
  if (m == 0)
    n + 1
  elsif (n == 0)
    ack(m - 1, 1)
  else
    ack(m - 1, ack(m, n - 1))
  end
end

# graph = Flamegraph.generate do
#   ack(3,7)
# end

Flamegraph.generate("graph.html") do
  ack(3,7)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flamegraph-0.9.5 demo/demo.rb
flamegraph-0.1.0 demo/demo.rb
flamegraph-0.0.9 demo/demo.rb
flamegraph-0.0.8 demo/demo.rb
flamegraph-0.0.7 demo/demo.rb
flamegraph-0.0.6 demo/demo.rb
flamegraph-0.0.5 demo/demo.rb
flamegraph-0.0.4 demo/demo.rb
flamegraph-0.0.3 demo/demo.rb
flamegraph-0.0.2 demo/demo.rb