[Support] Get process statistics in ExecuteAndWait and Wait
authorSerge Pavlov <sepavloff@gmail.com>
Thu, 23 Apr 2020 06:04:52 +0000 (13:04 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Wed, 17 Jun 2020 06:39:59 +0000 (13:39 +0700)
commit2e613d2ded2c465bd06bd3cac30ffb4576bf72cc
tree0d9a6548765470bdd8973de1b86426e9d9b92a5b
parente3fd9dc9734c5775dc6824d0a839702e8d43e7f6
[Support] Get process statistics in ExecuteAndWait and Wait

The functions sys::ExcecuteAndWait and sys::Wait now have additional
argument of type pointer to structure, which is filled with process
execution statistics upon process termination. These are total and user
execution times and peak memory consumption. By default this argument is
nullptr so existing users of these function must not change behavior.

Differential Revision: https://reviews.llvm.org/D78901
llvm/include/llvm/Support/Program.h
llvm/lib/Support/Program.cpp
llvm/lib/Support/Unix/Program.inc
llvm/lib/Support/Windows/Program.inc
llvm/unittests/Support/ProgramTest.cpp