ActiveTrace
public
class
ActiveTrace
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.tracing.ActiveTrace |
アクティブなトレースの記述と管理に役立つメインクラス。
概要
フィールド | |
|---|---|
public
static
final
String |
TRACE_KEY
|
パブリック コンストラクタ | |
|---|---|
ActiveTrace(long pid, long tid)
|
|
ActiveTrace(long pid, long tid, boolean mainProcess)
コンストラクタ。 |
|
パブリック メソッド | |
|---|---|
void
|
addSubprocessTrace(File subTrace)
親に追加するサブプロセスのトレース ファイルを指定します。 |
File
|
finalizeTracing()
最終的なトレース ファイルを報告し、必要に応じてリソースをクリーンアップします。 |
boolean
|
isMainTradefedProcess()
|
void
|
reportTraceEvent(String categories, String name, PerfettoTrace.TrackEvent.Type type)
|
void
|
reportTraceEvent(String categories, String name, int threadId, String threadName, PerfettoTrace.TrackEvent.Type type)
トレース開始 / 終了を行う非常に基本的なイベント レポート。 |
long
|
reportingThreadId()
トレースを開始したスレッドのスレッド ID。 |
void
|
startTracing(boolean isSubprocess)
トレースを開始し、トレースのメタデータを報告します。 |
フィールド
TRACE_KEY
public static final String TRACE_KEY
パブリック コンストラクタ
ActiveTrace
public ActiveTrace (long pid,
long tid)| パラメータ | |
|---|---|
pid |
long |
tid |
long |
ActiveTrace
public ActiveTrace (long pid,
long tid,
boolean mainProcess)コンストラクタ。
| パラメータ | |
|---|---|
pid |
long: 現在のプロセス ID |
tid |
long: 現在のスレッド ID |
mainProcess |
boolean |
パブリック メソッド
addSubprocessTrace
public void addSubprocessTrace (File subTrace)
親に追加するサブプロセスのトレース ファイルを指定します。
| パラメータ | |
|---|---|
subTrace |
File |
finalizeTracing
public File finalizeTracing ()
最終的なトレース ファイルを報告し、必要に応じてリソースをクリーンアップします。
| 戻り値 | |
|---|---|
File |
|
isMainTradefedProcess
public boolean isMainTradefedProcess ()
| 戻り値 | |
|---|---|
boolean |
|
reportTraceEvent
public void reportTraceEvent (String categories,
String name,
PerfettoTrace.TrackEvent.Type type)| パラメータ | |
|---|---|
categories |
String |
name |
String |
type |
PerfettoTrace.TrackEvent.Type |
reportTraceEvent
public void reportTraceEvent (String categories,
String name,
int threadId,
String threadName,
PerfettoTrace.TrackEvent.Type type)トレース開始 / 終了を行う非常に基本的なイベント レポート。
| パラメータ | |
|---|---|
categories |
String: イベントに関連付けられたカテゴリ |
name |
String: イベント名 |
threadId |
int |
threadName |
String |
type |
PerfettoTrace.TrackEvent.Type: 報告されるイベントのタイプ |
reportingThreadId
public long reportingThreadId ()
トレースを開始したスレッドのスレッド ID。
| 戻り値 | |
|---|---|
long |
|
startTracing
public void startTracing (boolean isSubprocess)
トレースを開始し、トレースのメタデータを報告します。
| パラメータ | |
|---|---|
isSubprocess |
boolean |