From 5e586949718841e28b570263b09d18d82965110a Mon Sep 17 00:00:00 2001 From: pelya Date: Tue, 18 Oct 2011 17:19:24 +0300 Subject: [PATCH] More regression debug --- project/jni/application/regression/ballfield.cpp | 3 ++- regression.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project/jni/application/regression/ballfield.cpp b/project/jni/application/regression/ballfield.cpp index b2079c702..7f047da05 100644 --- a/project/jni/application/regression/ballfield.cpp +++ b/project/jni/application/regression/ballfield.cpp @@ -545,7 +545,8 @@ int main(int argc, char* argv[]) fps = (float)fps_count * 1000.0 / (tick - fps_start); fps_count = 0; fps_start = tick; - __android_log_print(ANDROID_LOG_INFO, "Ballfield", "SDL REGRESSION BUILDDATE %s FPS: %f", BUILDDATE, fps); + __android_log_print(ANDROID_LOG_INFO, "Ballfield", "SDL REGRESSION BUILDDATE %s FPS: %f SCREEN %dx%d balls %d", + BUILDDATE, fps, SCREEN_W, SCREEN_H, BALLS); } print_num(screen, font, screen->w-37, screen->h-12, fps); ++fps_count; diff --git a/regression.sh b/regression.sh index 617de3da3..3e817986d 100755 --- a/regression.sh +++ b/regression.sh @@ -66,8 +66,9 @@ cd project nice -n19 ndk-build V=1 -j4 && ant debug && cp -f bin/DemoActivity-debug.apk ../regression/$CURFMT.apk cd .. adb install -r regression/$CURFMT.apk +adb shell pm uninstall net.olofson.ballfield.regression adb shell am start -n net.olofson.ballfield.regression/.MainActivity -sleep 15 +sleep 40 echo BUILDDATE $CURFMT: "`git log -n 1 --format="%s"`" >> regression/regression.txt adb shell logcat -d -t 20 | grep "SDL REGRESSION BUILDDATE $CURFMT" >> regression/regression.txt