Sha256: 0a411ffcb23189b1c2a00f8d8b09c9b59eebb01178fe4c41f930c8f78f4b4fb7

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents


require 'threadStackCombinator'
require 'threadStackExtractor'
require 'threadStack'

require 'rubygems'
require 'hirb'

class WasThreadStackProcessor
	
	attr_accessor :threadStackCombinator

	def initialize(threadStackCombinator)
		@threadStackCombinator = threadStackCombinator
	end

	def process(file)
		threadStackExtractor = ThreadStackExtractor.new(file)
		threadStacks = threadStackExtractor.getThreadStacks

		threadStacks.each { |threadStack| @threadStackCombinator.combine(ThreadStack.new(threadStack))}
	end

	def children_sorted
		threadStackCombinator.combinedThreadStacks.compact.sort { |a,b| b.count <=> a.count}
	end

	def text_count
		""
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
WasThreadStackProcessor-0.1.5 lib/WasThreadStackProcessor.rb