lib: Ignore depgraph counters with --pretend

For now, do not log depgraph counters which are determined via
--pretend. These packages do not get built, and in aggregate, could skew
analysis of the total number of packages installed in a given invocation
of chromite/bash tooling.

This change also adds sys.argv to each log entry. This can be changed
later, or omitted from data being consumed by callers.

BUG=none
TEST=manual

Change-Id: Iead04b7b0f6e4645a8ff35d1ac40eeccefeae650
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/portage_tool/+/5038819
Commit-Queue: Alex Klein <saklein@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
Auto-Submit: Lee Presland <zland@google.com>
Tested-by: Lee Presland <zland@google.com>
2 files changed