scripts: Renamed report -> main_ in perf.py/perfbd.py
This is a useful convention. It indicates these functions don't do anything a main function wouldn't normally do.
This commit is contained in:
+2
-2
@@ -1481,7 +1481,7 @@ def annotate(Result, results, *,
|
|||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
|
|
||||||
def report(perf_paths, *,
|
def main_(perf_paths, *,
|
||||||
by=None,
|
by=None,
|
||||||
fields=None,
|
fields=None,
|
||||||
defines=[],
|
defines=[],
|
||||||
@@ -1622,7 +1622,7 @@ def main(**args):
|
|||||||
if args.get('record'):
|
if args.get('record'):
|
||||||
return record(**args)
|
return record(**args)
|
||||||
else:
|
else:
|
||||||
return report(**args)
|
return main_(**args)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
+2
-2
@@ -1469,7 +1469,7 @@ def annotate(Result, results, *,
|
|||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
|
|
||||||
def report(paths, *,
|
def main_(paths, *,
|
||||||
by=None,
|
by=None,
|
||||||
fields=None,
|
fields=None,
|
||||||
defines=[],
|
defines=[],
|
||||||
@@ -1618,7 +1618,7 @@ def main(**args):
|
|||||||
if args.get('record'):
|
if args.get('record'):
|
||||||
return record(**args)
|
return record(**args)
|
||||||
else:
|
else:
|
||||||
return report(**args)
|
return main_(**args)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@@ -1070,7 +1070,6 @@ class Grid:
|
|||||||
return grid
|
return grid
|
||||||
|
|
||||||
|
|
||||||
# TODO adopt main_ in all result scripts? (vs report)
|
|
||||||
# TODO adopt this keep_open pattern in all ascii-art scripts?
|
# TODO adopt this keep_open pattern in all ascii-art scripts?
|
||||||
def main_(f, csv_paths, *,
|
def main_(f, csv_paths, *,
|
||||||
by=None,
|
by=None,
|
||||||
|
|||||||
Reference in New Issue
Block a user