]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Improve formatting of percentage columns.
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 20 Mar 2023 02:58:04 +0000 (13:58 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 23 Mar 2023 02:00:17 +0000 (13:00 +1100)
commitb8a90ee9682b5dbed81d4dd8ee2d7bc3b77eb906
treeb7c3c002b214ef95e2205204c9d486126d11983f
parente9e7b663fb69075a110963d85726389f469fcf5b
Improve formatting of percentage columns.

Currently their width is mostly hard-wired in a quick and dirty fashion.
This commit does them properly, so:
- all columns are always the right width, even ones with really large
  percentages
- things like `( 1.00%)` are now `(1.00%)`
- any percentages that would involve a division by zero now show as
  `(n/a)` rather than `( 0.00%)`
cachegrind/cg_annotate.in
cachegrind/tests/ann2.post.exp
cachegrind/tests/ann3.post.exp
cachegrind/tests/cgout-test3
cachegrind/tests/diff.post.exp