Requires Android Chrome version 25+
- Ensure that the Android SDK is installed and that
adb
is in your path - Ensure that your Android device is connected and USB debugging is enabled
- Ensure that USB debugging is enabled in Chrome
$ python ./adb_trace.py
['SurfaceView', '16954612']
Refresh rate auto-guessed to be 58.981002.
Press enter to stop profiling.
Pulling chrome-profile-results-2013-03-19-014011 to ./chrome.json
Using beta?
$ python ./adb_trace.py --browser beta
Using dev channel or developer build? (Sorry, internal only right now)
--browser dev
and --browser build
On the computer your Android is connected to:
- Navigate to
about:tracing
- Click the Load button
- Select
chrome.json
that was copied to your PC.
--refresh-rate
: The display refresh rate in Hz.--url
: The url to navigate to before capturing the trace.--browser
: The browser channel: stable, beta, dev, or build.stable
: The official build of Chromebeta
: The beta build of Chromedev
: The development/canary build of Chromebuild
: Compiled Chrome yourself? This one is for you.
--view
: Runs thetrace-event-viewer
command upon completion.
trace-event-viewer
is a standalone version of Chrome's about:tracing UI
for viewing multithreaded performance traces. Works on OSX and Linux and
even Windows using Chrome Apps v2 to make it look like a regular app.
You can grab it from here: https://github.com/natduca/trace_event_viewer