[LNT] r340078 - Add ability to track linker memory usage
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 17 13:47:20 PDT 2018
Author: paquette
Date: Fri Aug 17 13:47:19 2018
New Revision: 340078
URL: http://llvm.org/viewvc/llvm-project?rev=340078&view=rev
Log:
Add ability to track linker memory usage
This just adds a link_mem_bytes field to the name mappings, and tacks on the
"-link" suffix in the same way that we handle link time. This lets us submit
link_mem_bytes without modifying the existing schema etc.
This is useful for tracking LTO memory usage!
Modified:
lnt/trunk/lnt/tests/test_suite.py
Modified: lnt/trunk/lnt/tests/test_suite.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/test_suite.py?rev=340078&r1=340077&r2=340078&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/test_suite.py (original)
+++ lnt/trunk/lnt/tests/test_suite.py Fri Aug 17 13:47:19 2018
@@ -689,7 +689,8 @@ class TestSuiteTest(BuiltinTest):
'hash': 'hash',
'link_time': 'compile',
'size.__text': 'code_size',
- 'mem_bytes': 'mem'
+ 'mem_bytes': 'mem',
+ 'link_mem_bytes': 'mem'
}
LIT_METRIC_CONV_FN = {
'compile_time': float,
@@ -698,7 +699,8 @@ class TestSuiteTest(BuiltinTest):
'hash': str,
'link_time': float,
'size.__text': float,
- 'mem_bytes': float
+ 'mem_bytes': float,
+ 'link_mem_bytes': float
}
# We don't use the test info, currently.
@@ -752,7 +754,7 @@ class TestSuiteTest(BuiltinTest):
continue
server_name = name + '.' + LIT_METRIC_TO_LNT[k]
- if k == 'link_time':
+ if k == 'link_time' or k == 'link_mem_bytes':
# Move link time into a second benchmark's
# compile-time.
server_name = name + '-link.' + LIT_METRIC_TO_LNT[k]
More information about the llvm-commits
mailing list