class WasThreadStackProcessor

Attributes

threadStackCombinator[RW]

Public Class Methods

new(threadStackCombinator) click to toggle source
# File lib/WasThreadStackProcessor.rb, line 14
def initialize(threadStackCombinator)
        @threadStackCombinator = threadStackCombinator
end

Public Instance Methods

children_sorted() click to toggle source
# File lib/WasThreadStackProcessor.rb, line 25
def children_sorted
        threadStackCombinator.combinedThreadStacks.compact.sort { |a,b| b.count <=> a.count}
end
process(file) click to toggle source
# File lib/WasThreadStackProcessor.rb, line 18
def process(file)
        threadStackExtractor = ThreadStackExtractor.new(file)
        threadStacks = threadStackExtractor.getThreadStacks

        threadStacks.each { |threadStack| @threadStackCombinator.combine(ThreadStack.new(threadStack))}
end
text_count() click to toggle source
# File lib/WasThreadStackProcessor.rb, line 29
def text_count
        ""
end