Add tool for finding minimum ram we can run in for specific app
Add an argument to run_on_app that makes the tool find the minimum amount of heap space neccesary
to compile the given app with the given compiler
I will add another tool for running this on a range of commits
Bug: 121020829
Change-Id: I88329e85f6cb4d91c41d06a86ca24c45bc5e04ca
diff --git a/tools/toolhelper.py b/tools/toolhelper.py
index 6a443ac..86787be 100644
--- a/tools/toolhelper.py
+++ b/tools/toolhelper.py
@@ -9,7 +9,8 @@
import utils
def run(tool, args, build=None, debug=True,
- profile=False, track_memory_file=None, extra_args=None):
+ profile=False, track_memory_file=None, extra_args=None,
+ stderr=None, stdout=None):
if build is None:
build, args = extract_build_from_args(args)
if build:
@@ -35,7 +36,7 @@
cmd.extend(["--lib", lib])
cmd.extend(args)
utils.PrintCmd(cmd)
- return subprocess.call(cmd)
+ return subprocess.call(cmd, stdout=stdout, stderr=stderr)
def run_in_tests(tool, args, build=None, debug=True, extra_args=None):
if build is None: