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 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

#call_pattern, #entry_pattern

Instance Method Summary collapse

Methods inherited from BaseTraceParser

#parse

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