perfetto: Prune connections if there's too many or if they time out

$> setprop iorapd.perfetto.max_traces 5 # count
$> setprop iorapd.perfetto.timeout 10 # seconds

Aborted traces pretend as if they went to kTraceFailed, which triggers
the rest of the iorap code to call Destroy.

Test: adb shell iorap.cmd.perfetto # with various sysprops set
Bug: 149790059
Change-Id: If97687ea6b2e4b2617ad713376705d50c23a7428
1 file changed