perfetto_hprof: be smarter about splitting packets

We now keep track of how much we have already written.

Test: grab profile and look at in ui.perfetto.dev.

Bug: 149378918
Bug: 143874090
Change-Id: I76c491fe3738611d012294169ee7c77541a6d8cb
1 file changed