aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling
diff options
context:
space:
mode:
authorGravatar Lidi Zheng <lidiz@google.com>2018-12-13 16:33:02 -0800
committerGravatar Lidi Zheng <lidiz@google.com>2018-12-13 16:40:47 -0800
commit0f0822d53f37ea9da8bf838e5b3c62b05afe2f10 (patch)
treecf31a7b5d99db1f537760beeb0fd488265e13d03 /tools/profiling
parent3c3436d2b4530580c2b95d897a3614fb1d430518 (diff)
WIP: Utilize the GitHub Check Feature
Diffstat (limited to 'tools/profiling')
-rwxr-xr-xtools/profiling/bloat/bloat_diff.py4
-rwxr-xr-xtools/profiling/ios_bin/binary_size.py4
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff/bm_main.py4
-rwxr-xr-xtools/profiling/qps/qps_diff.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/tools/profiling/bloat/bloat_diff.py b/tools/profiling/bloat/bloat_diff.py
index 91611c2ca4..36189151e9 100755
--- a/tools/profiling/bloat/bloat_diff.py
+++ b/tools/profiling/bloat/bloat_diff.py
@@ -25,7 +25,7 @@ import sys
sys.path.append(
os.path.join(
os.path.dirname(sys.argv[0]), '..', '..', 'run_tests', 'python_utils'))
-import comment_on_pr
+import check_on_pr
argp = argparse.ArgumentParser(description='Perform diff on microbenchmarks')
@@ -90,4 +90,4 @@ for lib in LIBS:
text += '\n\n'
print text
-comment_on_pr.comment_on_pr('```\n%s\n```' % text)
+check_on_pr.check_on_pr('Bloat Difference', '```\n%s\n```' % text)
diff --git a/tools/profiling/ios_bin/binary_size.py b/tools/profiling/ios_bin/binary_size.py
index d4d134fef3..f0c8dd01a0 100755
--- a/tools/profiling/ios_bin/binary_size.py
+++ b/tools/profiling/ios_bin/binary_size.py
@@ -26,7 +26,7 @@ from parse_link_map import parse_link_map
sys.path.append(
os.path.join(
os.path.dirname(sys.argv[0]), '..', '..', 'run_tests', 'python_utils'))
-import comment_on_pr
+import check_on_pr
# Only show diff 1KB or greater
diff_threshold = 1000
@@ -147,4 +147,4 @@ for frameworks in [False, True]:
print text
-comment_on_pr.comment_on_pr('```\n%s\n```' % text)
+check_on_pr.check_on_pr('Binary Size', '```\n%s\n```' % text)
diff --git a/tools/profiling/microbenchmarks/bm_diff/bm_main.py b/tools/profiling/microbenchmarks/bm_diff/bm_main.py
index 96c63ba060..e5061b24f5 100755
--- a/tools/profiling/microbenchmarks/bm_diff/bm_main.py
+++ b/tools/profiling/microbenchmarks/bm_diff/bm_main.py
@@ -30,7 +30,7 @@ import subprocess
sys.path.append(
os.path.join(
os.path.dirname(sys.argv[0]), '..', '..', 'run_tests', 'python_utils'))
-import comment_on_pr
+import check_on_pr
sys.path.append(
os.path.join(
@@ -152,7 +152,7 @@ def main(args):
if note:
text = note + '\n\n' + text
print('%s' % text)
- comment_on_pr.comment_on_pr('```\n%s\n```' % text)
+ check_on_pr.check_on_pr('Benchmark', '```\n%s\n```' % text)
if __name__ == '__main__':
diff --git a/tools/profiling/qps/qps_diff.py b/tools/profiling/qps/qps_diff.py
index 393f862b4d..2c73b236e2 100755
--- a/tools/profiling/qps/qps_diff.py
+++ b/tools/profiling/qps/qps_diff.py
@@ -33,7 +33,7 @@ import bm_speedup
sys.path.append(
os.path.join(
os.path.dirname(sys.argv[0]), '..', '..', 'run_tests', 'python_utils'))
-import comment_on_pr
+import check_on_pr
def _args():
@@ -164,7 +164,7 @@ def main(args):
else:
text = '[qps] No significant performance differences'
print('%s' % text)
- comment_on_pr.comment_on_pr('```\n%s\n```' % text)
+ check_on_pr.check_on_pr('QPS', '```\n%s\n```' % text)
if __name__ == '__main__':