Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f98f7c1 authored by Shai Barack's avatar Shai Barack
Browse files

am dumpbitmaps: improve size formatting

Instead of printing: 12345678
Will print: 12,345,678

This way it's easier to understand that the size is roughly 12 MB.

Flag: EXEMPT small fix to debug-only tool
Change-Id: Ie5fdfec2b5199d7b4473aee1bb1a88f9b82aa99a
parent 97370356
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1519,9 +1519,9 @@ final class ActivityManagerShellCommand extends ShellCommand {
        private static final String bitmapInfoHeader =
          "   Bitmap ID  | Width | Height |   Size     |   Config  | M |   Type   |  Source";
        private static final String bitmapInfoSep =
          "--------------|-------|--------|----------|-----------|---|----------|--------";
          "--------------|-------|--------|------------|-----------|---|----------|--------";
        private static final String bitmapInfoRowFormat =
          " %12d | %5d |  %5d | %8d | %9.9s | %s | %8.8s | %12d";
          " %12d | %5d |  %5d | %,10d | %9.9s | %s | %8.8s | %12d";

        private static final String bitmapInfoHeaderCSV =
          "PID, Process Name, Bitmap ID, Width, Height, Size, Config, Mutable, AllocType, Source";