From 68b44a4a89b58794aa5a871e91c44b3537b1f27c Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Tue, 7 May 2013 20:50:03 -0700 Subject: [PATCH] Gather more stats Add a button to capture raw start and end callback time (just putting it in a text buffer so it can be copied), which is useful for making plots. Also a bunch of commented out code to provoke priority inversion or sudden increases in load (which exercises the governor), again for the purpose of probing performance and making plots. --- android/res/layout/piano2.xml | 21 ++++++++----- android/res/raw/drums.sf2 | Bin 1833633 -> 0 bytes android/res/values/strings.xml | 2 ++ .../android/service/SynthesizerService.java | 14 ++++----- .../android/stats/JitterStats.java | 17 ++++++++++ .../android/ui/PianoActivity2.java | 29 ++++++++++++++++++ cpp/src/android_glue.cc | 5 ++- cpp/src/fm_core.cc | 4 --- 8 files changed, 73 insertions(+), 19 deletions(-) delete mode 100644 android/res/raw/drums.sf2 diff --git a/android/res/layout/piano2.xml b/android/res/layout/piano2.xml index 8ffbad7..fe71d67 100644 --- a/android/res/layout/piano2.xml +++ b/android/res/layout/piano2.xml @@ -18,19 +18,15 @@ android:gravity="center_horizontal" /> @@ -39,13 +35,13 @@ app:value="1.0" app:min="0" app:max="1" - android:layout_margin="2px" /> + android:layout_margin="2dp" /> + android:layout_margin="2dp" /> @@ -58,8 +54,19 @@ android:id="@+id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_span="6" /> +