Sha256: 94594911a9e08d1c139c4cfba3b64201fb172f2e3731824b79971c0477604554

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

require 'helper'

if ENV['USER'] == 'julik'

  require 'ruby-prof'

  class TestProfile < Test::Unit::TestCase
    P = Tickly::Parser.new
  
  
    def test_huge_tcl
      f = File.open(File.dirname(__FILE__) + "/test-data/huge_nuke_tcl.tcl")
    
      RubyProf.start
      P.parse(f)
      result = RubyProf.stop
    
      # Print a call graph
      File.open("profiler_calls.html", "w") do | f |
        RubyProf::GraphHtmlPrinter.new(result).print(f)
      end
      `open profiler_calls.html`
    end
  
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tickly-1.0.0 test/test_profile.rb
tickly-0.0.8 test/test_profile.rb
tickly-0.0.7 test/test_profile.rb
tickly-0.0.6 test/test_profile.rb