1# Copyright 2017 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5NDK_HOME ?= $(HOME)/tools/android-ndk-r13b 6 7all: build 8 9build: 10 $(NDK_HOME)/ndk-build 11 12install: build 13 adb push libs/armeabi-v7a/atrace_helper /data/local/tmp/atrace_helper 14 15test: install 16 adb shell /data/local/tmp/atrace_helper -c 1 17 18testf: install 19 adb shell /data/local/tmp/atrace_helper -c 1 -m system_server -g -s -o /data/local/tmp/dump.json 20 adb pull /data/local/tmp/dump.json /tmp/dump.json 21 python -c 'import json; json.load(open("/tmp/dump.json"))' 22 23benchmark: install 24 adb shell "time /data/local/tmp/atrace_helper -c 1 -m -o /dev/null" 25