Skip to content

Request -optimizationsummary option #494

@BoannWasHere

Description

@BoannWasHere

When -verbose is enabled, ProGuard prints information about the optimizations it has achieved:

Removing unused program classes and class elements...
  Original number of program classes:            678
  Final number of program classes:               607
Optimizing (pass 1/9)...
  Number of finalized classes:                   76
  Number of unboxed enum classes:                1
  Number of vertically merged classes:           0
  Number of horizontally merged classes:         25
  Number of merged wrapper classes:              0
  Number of removed write-only fields:           36
  Number of privatized fields:                   329
  Number of generalized field accesses:          222
  Number of specialized field types:             70
  Number of inlined constant fields:             32
  Number of privatized methods:                  207
  Number of staticized methods:                  23
  Number of finalized methods:                   1753
  Number of desynchronized methods:              0
  Number of simplified method signatures:        36
  Number of removed method parameters:           42
  Number of generalized method invocations:      3642
  Number of specialized method parameter types:  138
  Number of specialized method return types:     72
  Number of inlined constant parameters:         107
  Number of inlined constant return values:      17
  Number of inlined short method calls:          1100
  Number of inlined unique method calls:         498
  Number of inlined tail recursion calls:        1
  Number of merged code blocks:                  46
  Number of variable peephole optimizations:     3864
  Number of arithmetic peephole optimizations:   200
  Number of cast peephole optimizations:         0
  Number of field peephole optimizations:        19
  Number of branch peephole optimizations:       837
  Number of object peephole optimizations:       23
  Number of string peephole optimizations:       7
  Number of math peephole optimizations:         0
  Number of simplified instructions:             1164
  Number of removed instructions:                2667
  Number of removed local variables:             218
  Number of removed exception blocks:            64
  Number of optimized local variable frames:     1011

I like looking at this info, except it prints it nine times, once for each optimization pass. It's too much data to absorb.

I would really appreciate an option that would simply print a summed total of the nine optimization passes. I think it would be just as valuable without being so overwhelming as -verbose. Thank you for reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions