Class: Tracetool::Android::NativeTraceParser
- Inherits:
-
BaseTraceParser
- Object
- BaseTraceParser
- Tracetool::Android::NativeTraceParser
- Defined in:
- lib/tracetool/android/native.rb
Overview
Android traces scanner and mapper
Constant Summary collapse
- STACK_ENTRY_PATTERN =
Describes android stack entry rubocop:disable Metrics/LineLength
%r{Stack frame #(?<frame>\d+) (?<address>\w+ [a-f\d]+) (?<lib>[/\w\d\._!=-]+)( )?(:? (?<call_description>.+))?$}.freeze
- CALL_PATTERN =
rubocop:enable Metrics/LineLength Describes android native method call (class::method and source file with line number)
[ /((Routine )?(?<method>.+) ((in)|(at)) (?<file>.+):(?<line>\d+))/, /(?<method>.+?) \d+/ ].freeze
Instance Attribute Summary
Attributes inherited from BaseTraceParser
Instance Method Summary collapse
-
#initialize(files) ⇒ NativeTraceParser
constructor
A new instance of NativeTraceParser.
Methods inherited from BaseTraceParser
Constructor Details
#initialize(files) ⇒ NativeTraceParser
Returns a new instance of NativeTraceParser.
18 19 20 |
# File 'lib/tracetool/android/native.rb', line 18 def initialize(files) super(STACK_ENTRY_PATTERN, CALL_PATTERN, files, true) end |