Skip to content

si_report: print percentages table as a markdown table

To allow easy copy-pasting to gitlab.

Before:

 PERCENTAGE DELTAS    Shaders     SGPRs     VGPRs SpillSGPR SpillVGPR  PrivVGPR   Scratch  CodeSize  MaxWaves     Waits
 humus-domino               6    5.56 %   -5.26 %     .         .         .         .        0.15 %     .         .    
 ----------------------------------------------------------------------------------------------------------------------
 All affected               3    9.09 %   -9.09 %     .         .         .         .        0.22 %     .         .    
 ----------------------------------------------------------------------------------------------------------------------
 Total                      6    5.56 %   -5.26 %     .         .         .         .        0.15 %     .         .    

After:

| PERCENTAGE DELTAS |  Shaders |    SGPRs |    VGPRs |SpillSGPR |SpillVGPR | PrivVGPR |  Scratch | CodeSize | MaxWaves |    Waits |
|-------------------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|
| humus-domino      |         6|    5.56 %|   -5.26 %|    .     |    .     |    .     |    .     |    0.15 %|    .     |    .     |
|-------------------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|
| All affected      |         3|    9.09 %|   -9.09 %|    .     |    .     |    .     |    .     |    0.22 %|    .     |    .     |
|-------------------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|
| Total             |         6|    5.56 %|   -5.26 %|    .     |    .     |    .     |    .     |    0.15 %|    .     |    .     |

And the same table displayed in gitlab:

PERCENTAGE DELTAS Shaders SGPRs VGPRs SpillSGPR SpillVGPR PrivVGPR Scratch CodeSize MaxWaves Waits
humus-domino 6 5.56 % -5.26 % . . . . 0.15 % . .
------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
All affected 3 9.09 % -9.09 % . . . . 0.22 % . .
------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
Total 6 5.56 % -5.26 % . . . . 0.15 % . .

Merge request reports

Loading