Add a flag to choose the output format for the am profile command

ART now supports a new method trace format that allows us to do more
optimizations to improve both performance and to reduce the size of the
generated trace files. Since the new format won't work with existing
parsers we add a flag so the users could choose which format they need.

Bug: 259258187
Test: am profile start --profiler-output-format 1 / 2
am start-activity --start-profiler --profiler-output-version 1 / 2
am start-activity --streaming --start-profiler --profiler-output-version 1 / 2
am profile start --streaming --profiler-output-format 1 / 2

Change-Id: Ifbcf34f717aaa53fd13adb06e2dfbcfff133bf2c
5 files changed