Sha256: d45b1f4763fede7c2cbb6de29c0e5dbaffab540bfa152cb241c78ab08a88d66f
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require 'ruby-prof' require 'timeout' require 'test_helper' # -- Tests ---- class ThreadTest < Test::Unit::TestCase def test_thread RubyProf.start begin status = Timeout::timeout(2) do while true next end end rescue Timeout::Error end result = RubyProf.stop result.threads.values.each do |methods| methods.values.each do |method| check_parent_times(method) check_parent_calls(method) check_child_times(method) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-prof-0.4.0-mswin32 | test/thread_test.rb |
ruby-prof-0.4.0 | test/thread_test.rb |