Fix StringIO in catapult

Try a different approach here: 1. Try not change py2 behavior,
so this will not break any existing test. 2. In py3 treat output
from subprocess as utf8, and ignore any decoding error

also includes some syntax fixes

Bug: chromium:1183514
Change-Id: I33187c5b1a013386ad34f5629c9199e9fd0f46b4
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/2759008
Commit-Queue: Weizhong Xia <weizhong@google.com>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
7 files changed
tree: 3924fe99b8379ea1daf6af3e8cef3939a91d6edc
  1. bin/
  2. catapult_build/
  3. common/
  4. dashboard/
  5. dependency_manager/
  6. devil/
  7. docs/
  8. experimental/
  9. firefighter/
  10. hooks/
  11. infra/
  12. netlog_viewer/
  13. systrace/
  14. telemetry/
  15. third_party/
  16. trace_processor/
  17. tracing/
  18. web_page_replay_go/
  19. .eslintignore
  20. .eslintrc
  21. .gcloudignore
  22. .gitignore
  23. .vpython
  24. AUTHORS
  25. BUILD.gn
  26. codereview.settings
  27. CONTRIBUTING.md
  28. generate_telemetry_build.py
  29. LICENSE
  30. navbar.md
  31. OWNERS
  32. PRESUBMIT.py
  33. pylintrc
  34. README.md
  35. WATCHLISTS
README.md

Catapult

Catapult is the home for several performance tools that span from gathering, displaying and analyzing performance data. This includes:

These tools were created by Chromium developers for performance analysis, testing, and monitoring of Chrome, but they can also be used for analyzing and monitoring websites, and eventually Android apps.

Contributing

Please see our contributor's guide