Only dump TC once when running a script multiple times with --count
commit1a34f295a557d7e86e669fe07a4159186450b6da
authorGuilherme Ottoni <ottoni@fb.com>
Thu, 5 Dec 2019 09:40:18 +0000 (5 01:40 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 5 Dec 2019 09:42:12 +0000 (5 01:42 -0800)
tree303bdbeea600c5a8c8ab3c31be976085867acc4f
parent955ceb16627d0e36ec4756ea750368fbc850263f
Only dump TC once when running a script multiple times with --count

Summary:
I noticed that we were calling tc::dump() each time the script was run.  Pull
the call to tc::dump() out of execute_command_line_end and only do it in the
last invocation.

Reviewed By: ricklavoie

Differential Revision: D18823023

fbshipit-source-id: a6c9fd0da922152b69ce2775cd6722d4e0eb8e83
hphp/runtime/base/program-functions.cpp