mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
[gpu] Report sizes in KiB in hb-gpu-encode-all
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
76eb0ae60f
commit
6d355dddce
1 file changed
+3
-4
@@ -109,11 +109,10 @@ main (int argc, char **argv)
|
||||
printf ("empty: %u\n", num_empty);
|
||||
if (num_failed)
|
||||
printf ("FAILED: %u\n", num_failed);
|
||||
printf ("total: %" PRIu64 " bytes (%.2f KiB)\n",
|
||||
total_bytes, total_bytes / 1024.);
|
||||
printf ("total: %.2f KiB\n", total_bytes / 1024.);
|
||||
if (num_encoded)
|
||||
printf ("avg: %.0f bytes/glyph (non-empty)\n",
|
||||
(double) total_bytes / num_encoded);
|
||||
printf ("avg: %.2f KiB/glyph (non-empty)\n",
|
||||
total_bytes / 1024. / num_encoded);
|
||||
|
||||
hb_gpu_draw_destroy (draw);
|
||||
hb_font_destroy (font);
|
||||
|
||||
Reference in new issue
Block a user