Home | History | Annotate | Download | only in atrace_helper
      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 
      5 NDK_HOME ?= $(HOME)/tools/android-ndk-r13b
      6 
      7 all: build
      8 
      9 build:
     10 	$(NDK_HOME)/ndk-build
     11 
     12 install: build
     13 	adb push libs/armeabi-v7a/atrace_helper /data/local/tmp/atrace_helper
     14 
     15 test: install
     16 	adb shell /data/local/tmp/atrace_helper -c 1
     17 
     18 testf: install
     19 	adb shell /data/local/tmp/atrace_helper -c 1 -m -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 
     23 benchmark: install
     24 	adb shell "time /data/local/tmp/atrace_helper -c 1 -m -o /dev/null"
     25