TraceParser

public class TraceParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.profiler.recorder.TraceParser


A parser for interpreting lines from /d/tracing/trace and encoding them as TraceLines.

Summary

Constants

String REGEX_CPU_NUM

String REGEX_FLAG_CLUSTER

String REGEX_FUNCTION_NAME

String REGEX_FUNCTION_PARAMS

String REGEX_TASK_NAME

String REGEX_TIMESTAMP

Fields

protected static final Pattern TRACE_LINE

Public constructors

TraceParser()

Public methods

TraceLine parseTraceLine(String line)

Protected methods

Map<String, Long> parseFunctionParams(String paramString)

Constants

REGEX_CPU_NUM

String REGEX_CPU_NUM

Constant Value: "\s*\[(\d\d\d)\]"

REGEX_FLAG_CLUSTER

String REGEX_FLAG_CLUSTER

Constant Value: "\s*([d\.])(.)(.)(\d)"

REGEX_FUNCTION_NAME

String REGEX_FUNCTION_NAME

Constant Value: "\s*(\w+):"

REGEX_FUNCTION_PARAMS

String REGEX_FUNCTION_PARAMS

Constant Value: " (.*)$"

REGEX_TASK_NAME

String REGEX_TASK_NAME

Constant Value: "^\s*([a-zA-Z0-9_/\-:<>]*)-\d+"

REGEX_TIMESTAMP

String REGEX_TIMESTAMP

Constant Value: "\s*(\d{1,5}\.\d{1,6}):"

Fields

TRACE_LINE

Pattern TRACE_LINE

Public constructors

TraceParser

TraceParser ()

Public methods

parseTraceLine

TraceLine parseTraceLine (String line)

Parameters
line String

Returns
TraceLine

Protected methods

parseFunctionParams

Map<String, Long> parseFunctionParams (String paramString)

Parameters
paramString String

Returns
Map<String, Long>