Captures both transaction and surfaceflinger trace files.
Test: bash capture_transaction.sh then upload transactiontrace.pb and
layerstrace.pb files to the winscope server.
Change-Id: I4461afa4048a504a158e5837af7c75fbedafeb0f
Merged-In: I4461afa4048a504a158e5837af7c75fbedafeb0f