Sha256: 32ccf3bef4a5a47e80261121f5894132bb5a37e60130587c44ab07767587281d
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
#!/usr/bin/env ruby current_dir = File.dirname(File.expand_path(__FILE__)) lib_path = File.join(current_dir, '..', 'lib') $LOAD_PATH.unshift lib_path require 'journeta' include Journeta def thread_count Thread.list.inject(0) {|i,n| n.status == 'run' ? (i+1) : i}.to_s end puts 'Threads before start: ' + thread_count j = Engine.new j.start sleep 1 # Let it run very briefly. j.stop puts 'Threads after stop: ' + thread_count
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
journeta-1.1.0 | bin/journeta_thread_leak_check.rb |