platform: graphics: fix various bugs in trace-profiling tools

- Filepath obtained from running commands through SSH sometimes include
a newline that must be trimmed before they are used in other commands.

- When processing several traces in Harvest, don't let a single failed
profile cause other traces to fail. Instead, print a warning.

- Fix a bug when pasring sort options in Analyze.

BUG=None
TEST=Build with emerge and make. Manually run tools on several traces
profiles.

Change-Id: I6f32901716d7380bc13327426e5202b26f2ac185
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/graphics/+/2410620
Reviewed-by: John Bates <jbates@chromium.org>
Tested-by: Georges Winkenbach <gwink@chromium.org>
Commit-Queue: Georges Winkenbach <gwink@chromium.org>
4 files changed
tree: 8512db87da4d1cc48008ee60220367f600540163
  1. src/
  2. .gitignore
  3. OWNERS
  4. PRESUBMIT.cfg
  5. PRESUBMIT.py
  6. pylintrc