TinyDancer
TinyDancer copied to clipboard
An android library for displaying fps from the choreographer and percentage of time with two or more frames dropped
Caused by: java.lang.NullPointerException at android.widget.TextView.getExtendedPaddingTop(TextView.java:1824) at android.widget.TextView.getTotalPaddingTop(TextView.java:1918) at com.codemonkeylabs.fpslibrary.ui.TinyCoach.(TinyCoach.java:54) at com.codemonkeylabs.fpslibrary.TinyDancerBuilder.show(TinyDancerBuilder.java:94) at com.codemonkeylabs.fpslibrary.sample.UI.MainActivity.onCreate(MainActivity.java:40) at android.app.Activity.performCreate(Activity.java:5287) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1101) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159
We can use Choreographer.postFrameCallback to set callback when each frame execute, and we can get the frame time from this callback to judge wether app is stuck. My question is...
Can i use your library to show fps on a floating service ?
I already have an android studio project. I just want to import the tinydancer pckage and add the code to show the fps. But I can't import the tiny dancer...
Hi: Number looks incorrect on this ASUS device (ASUS Z552KL), always show 10~25 but not on other device 
Thanks to @jaredsburrows for adding CI, I should add some tests.
The demo looks like it is out of the 1800s, it would be nice to add some material styling to it.