Isuru Daulagala
Isuru Daulagala

Reputation: 179

Get Frame rate statistics on android

I am doing a project where I am scaling the frequency of the GPU of a Nexus 7 through the kernel to save power. To measure QoS/performance I am trying to collect data on frames rendered (drawn/dropped). I am hoping to run a few games/videos to see the frame rate. I am aware that I can collect data through the adb with the command

$>adb shell dumpsys gfxinfo <package_name>

in developer mode with "Profile GPU rendering" enabled. This only outputs the time taken to draw/process/execute for the last 128 frames for each package/application. I am wondering if there is a hack to increase the number of frames

or

if I can get rendered frame statistics another way. I understand we can use systrace/tracer for OpenGL ES. Neither outputs stats-just wave forms.

Upvotes: 0

Views: 8964

Answers (3)

Turnsole
Turnsole

Reputation: 3472

Since this is a top result on Google for "frame rate statistics on android" I'm going to offer another suggestion. dumpsys gfxinfo clears that buffer each time you access it, so you if you poll it you can collect data as long as you like.

Upvotes: 2

Karthik H
Karthik H

Reputation: 123

You could use this app. It measures FPS of any game in the play store. It also records screenshots so you can understand what was happening when the FPS Drops.

Upvotes: 1

crunchytortoise
crunchytortoise

Reputation: 91

If it is the newer Nexus 7 with the snapdragon chip you could consider using the Adreno Profiler from their site. You'll have to make an account first though.

Upvotes: 2

Related Questions