0

I use tracing on chrome to analyze a file captured from an android device using systrace.And I want to know how tracing count a frame and mark it to diffenrent type.I have got tracing source code in github,but it seem don't include this function yet.

(Engish is not my native language,so there maybe many bug in here,:P)

systrace

Axl Echo
  • 1
  • 2

1 Answers1

0

systrace doesn't know anything about frames. The Android framework has explicit calls to android.os.Trace functions.

Bear in mind that the traces are only enabled if the appropriate tag is specified. If you add your own tracing, you need to include the --app <appname> argument when running systrace, or you won't see them. For an example, see this bigflake page.

fadden
  • 51,356
  • 5
  • 116
  • 166
  • 1
    I have solved my problem by reading the soure code of tracing.I found a function named *pushFramesAndJudgeJank_* that count the frame status located in tracing/tracing/extras/android/android_auditor.html.Systrace doesn't know about frames,but tracing of chromium do.Anyway,thanks for your help :) – Axl Echo Dec 01 '15 at 06:41