Documentation
¶
Overview ¶
Command glowprobe measures what an animated RadialGradient costs on a device (#1009). It draws Daysong's cover the way Player builds it: a 300 dp square holding a full-size LinearGradient, two centred RadialGradients whose size and start colour breathe, and a glyph over them. A ticker updates the two glows at a chosen rate, as Player's animation cap does.
Buttons above the cover pick the rate (0, 2, 10, 30 or 60 updates a second) and "glow only" hides the LinearGradient and the glyph, which separates the glows' own cost from that of what lies under them. "tiny" makes each update change a 4 dp square under the buttons instead of the glows: the same frames with almost nothing to draw, which separates a frame's fixed cost from the glows'. Each change prints a line, and once ready the probe prints where each button is, in pixels:
glowprobe ready scale=2.225 button rate0=212,480 rate2=... glowonly=... glowprobe rate=30 glowonly=false glowprobe updates=1800 in 60.0s
Drive it with adb: `adb shell input tap <x> <y>` with a button's pixels. It quits by itself after thirty minutes.
Android: package with `bellui package --target android/arm64 --app-id com.trendvidia.glowprobe` from this directory.