Apply clang-format
This commit is contained in:
parent
0edf1f0c94
commit
c238d3da76
|
|
@ -18,10 +18,13 @@ Version 2.0.
|
||||||
|
|
||||||
SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0""")
|
SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0""")
|
||||||
|
|
||||||
parser.add_argument('-o', type=argparse.FileType('w'), metavar="OUTFILE",
|
parser.add_argument('-o',
|
||||||
|
type=argparse.FileType('w'),
|
||||||
|
metavar="OUTFILE",
|
||||||
required=True,
|
required=True,
|
||||||
help='output file')
|
help='output file')
|
||||||
parser.add_argument('logfile', type=argparse.FileType('r'),
|
parser.add_argument('logfile',
|
||||||
|
type=argparse.FileType('r'),
|
||||||
help='ccache log file')
|
help='ccache log file')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
@ -54,6 +57,9 @@ else:
|
||||||
width = max(len(_) for _ in results.values()) + 1
|
width = max(len(_) for _ in results.values()) + 1
|
||||||
for k in sorted(counts.keys()):
|
for k in sorted(counts.keys()):
|
||||||
c = counts[k]
|
c = counts[k]
|
||||||
args.o.write("{:{width}}| {} ({:.2%})\n".format(k, c, c / total, width=width))
|
args.o.write("{:{width}}| {} ({:.2%})\n".format(k,
|
||||||
|
c,
|
||||||
|
c / total,
|
||||||
|
width=width))
|
||||||
|
|
||||||
args.o.write("#" * 80 + "\n")
|
args.o.write("#" * 80 + "\n")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue