Need an easy way to start and stop tracing on Android |
|||
Issue descriptionSupport the following workflow on Android Start tracing Take a memory dump ... do stuff .. Take another memory dump Stop tracing Primiano said he has details on how this can be done today. We should also discuss UI affordance to be able to do this without crazy hacks.
,
Jan 28 2017
Done https://gist.github.com/primiano/4aea6a36f2d209ad09bc509c9b9defc3 If anybody has spare cycles we should check it in catapult/tracing/bin Tested on OSX: ------ /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --remote-debugging-port=9222 $ python ~/code/tracing-devtools.py --port 9222 -o ~/Downloads/trace.json Connecting to ws://localhost:9222/devtools/browser Starting trace with trace_config {'excludedCategories': ['*'], 'memoryDumpConfig': {'triggers': []}, 'includedCategories': ['disabled-by-default-memory-infra']} Requesting memory dump Flushing trace /Users/primiano/Downloads/trace.json: 1451 KB ------ should work on android using the steps described in #1
,
Jan 31 2017
I've prepared a CL with that gist, just testing now.
,
Feb 6 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2826081823ca2c2cb5c04697f4402051ab19b8df commit 2826081823ca2c2cb5c04697f4402051ab19b8df Author: catapult-deps-roller <catapult-deps-roller@chromium.org> Date: Mon Feb 06 18:24:05 2017 Roll src/third_party/catapult/ e1e303241..71633f4c8 (1 commit). https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git/+log/e1e303241a39..71633f4c8c3f $ git log e1e303241..71633f4c8 --date=short --no-merges --format='%ad %ae %s' 2017-02-06 hjd [tracing] Add memory_infra_dump_devtools script BUG= 686238 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, see: http://www.chromium.org/developers/tree-sheriffs/sheriff-details-chromium#TOC-Failures-due-to-DEPS-rolls CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel TBR=catapult-sheriff@chromium.org Review-Url: https://codereview.chromium.org/2678783004 Cr-Commit-Position: refs/heads/master@{#448312} [modify] https://crrev.com/2826081823ca2c2cb5c04697f4402051ab19b8df/DEPS
,
Feb 6 2017
Done! Primiano's script now lives at tracing/bin/memory_infra_remote_dump |
|||
►
Sign in to add a comment |
|||
Comment 1 by primiano@chromium.org
, Jan 28 2017