Class: Tracetool::Android::NativeTraceParser

Inherits:
BaseTraceParser show all
Defined in:
lib/tracetool/android/native.rb

Overview

Android traces scanner and mapper

Constant Summary collapse

STACK_ENTRY_PATTERN =

Describes android stack entry

%r{Stack frame #(?<frame>\d+)  (?<address>\w+ [a-f\d]+)  (?<lib>[/\w\d\.-]+)( )?(: (?<call_description>.+))?$}
CALL_PATTERN =

Describes android native method call (class::method and source file with line number)

/(Routine )?(?<method>.+) ((in)|(at)) (?<file>.+):(?<line>\d+)/

Instance Attribute Summary

Attributes inherited from BaseTraceParser

#call_pattern, #entry_pattern

Instance Method Summary collapse

Methods inherited from BaseTraceParser

#parse

Constructor Details

#initialize(files) ⇒ NativeTraceParser

Returns a new instance of NativeTraceParser.



13
14
15
# File 'lib/tracetool/android/native.rb', line 13

def initialize(files)
  super(STACK_ENTRY_PATTERN, CALL_PATTERN, files, true)
end