class Tracetool::Android::AndroidTraceScanner

Desymbolicates android traces

Constants

SCANNERS

List of scanners

Public Instance Methods

parser(files) click to toggle source

Creates parser for last unpacked trace @param [Array] files list of source files used in build @return [Tracetool::BaseTraceParser] parser that matches trace format.

Or `nil`. If there was no scanning.
# File lib/tracetool/android.rb, line 27
def parser(files)
  return unless @scanner

  @scanner.parser(files)
end
process(trace, context) click to toggle source

Launches process of trace desymbolication @param [String] trace trace body

# File lib/tracetool/android.rb, line 15
def process(trace, context)
  # Find scanner which matches trace format
  @scanner = SCANNERS.map { |s| s[trace] }.compact.first
  raise(ArgumentError, "#{trace}\n not android trace?") unless @scanner

  @scanner.process(context)
end