[Coverage] Update code coverage tool to use %Nm option.

Previously, the code coverage script uses "%p" option to run the
instrumented program, this won't work because this option generates
one profraw file per process, and Chrome's large unittest target always
run in hundreds of processes, which results in generating too many
profraw data files that take unreasonable amount of disk space.

This CL updates to use the "%Nm" option, "%Nm" generates the same data
as "%p" but only creates less than 10 profraw data files.

This CL also deletes generated profraw data files once it's merged to
save disk space.

Bug: 784464
Change-Id: Id5516a4b3b7878c6290405259451641b93b1007f
Reviewed-on: https://chromium-review.googlesource.com/864893
Reviewed-by: Max Moroz <mmoroz@chromium.org>
Reviewed-by: Abhishek Arya <inferno@chromium.org>
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#529100}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d4a986520bd5d86e41fc35d6ef8290b1b3ce231c
1 file changed
tree: ed525b6e7d53e250ac6946b531ed4c2bca277959
  1. html_templates/
  2. coverage.py
  3. directory_example_report.html
  4. OWNERS