Coder Social home page Coder Social logo

adb_trace's Introduction

adb_trace

Android Debug Bridge + Chrome Tracing

Requires Android Chrome version 25+

Prerequisites

  1. Ensure that the Android SDK is installed and that adb is in your path
  2. Ensure that your Android device is connected and USB debugging is enabled
  3. Ensure that USB debugging is enabled in Chrome

Grabbing a capture from a stable Chrome build

$ 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

Viewing a capture

On the computer your Android is connected to:

  1. Navigate to about:tracing
  2. Click the Load button
  3. Select chrome.json that was copied to your PC.

Command Line Options

  • --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 Chrome
    • beta: The beta build of Chrome
    • dev: The development/canary build of Chrome
    • build: Compiled Chrome yourself? This one is for you.
  • --view: Runs the trace-event-viewer command upon completion.

trace-event-viewer

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

adb_trace's People

Contributors

johnmccutchan avatar paulirish avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.