diff options
| author | Ethan Roseman <ethteck@gmail.com> | 2020-06-21 20:58:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-21 20:58:56 -0400 |
| commit | 22d79e5e95a0c9a3c5b6cd2e8b2d507b1d34c5dc (patch) | |
| tree | 89aa5055cae91829b34847f4b8c8298df0281c81 /progress.py | |
| parent | ab1ec89f22808c38426f7e0d4e4f0e1a5bc3aec9 (diff) | |
CSV Progress (2) (#219)
* CSV Progress (2)
* Git time
Diffstat (limited to 'progress.py')
| -rwxr-xr-x | progress.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/progress.py b/progress.py index 23d4f0ae6..c7feb32ea 100755 --- a/progress.py +++ b/progress.py @@ -2,9 +2,9 @@ import argparse import csv +import git import os import re -import time parser = argparse.ArgumentParser(description="Computes current progress throughout the whole project.") parser.add_argument("-m", "--matching", dest='matching', action='store_true', @@ -115,8 +115,12 @@ compiled_bytes = total bytesPerHeartPiece = compiled_bytes / 80 if args.csv: - timestamp = str(time.time()) - print(timestamp + "," + str(srcPct) + "," + str(asmPct) + "," + str(bootPct) + "," + str(codePct) + "," + str(ovlPct)) + version = 1 + git_object = git.Repo().head.object + timestamp = str(git_object.committed_date) + git_hash = git_object.hexsha + csv_list = [str(version), timestamp, git_hash, str(code), str(codeSize), str(boot), str(bootSize), str(ovl), str(ovlSize), str(src), str(asm), str(len(nonMatchingFunctions))] + print(",".join(csv_list)) else: adjective = "decompiled" if not args.matching else "matched" |
