[opt-viewer] Kill parser processes before moving onto rendering

The main benefit is that they release the memory they were holding onto.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adam Nemet 2018-02-26 21:15:51 +00:00
parent bd8ae82c63
commit 177552c699

View File

@ -48,6 +48,8 @@ def pmap(func, iterable, processes, should_print_progress, *args, **kwargs):
initargs=(_current, _total,),
processes=processes)
result = pool.map(_wrapped_func, func_and_args, *args, **kwargs)
pool.close()
pool.join()
if should_print_progress:
sys.stdout.write('\r')