Support batch retrieval of partial trace entries (protos)

This commit extends the Trace API with a method
Trace#getPrefetchedPartialProto(), currently needed by
FrameMapper for fast retrieval of vsyncId values.
The previous FrameMapper implementation used to iterate
and fully fetch each trace entry (flickerlib object),
which is ridiculously slow when the trace entry is fetched
from trace processor (WASM).

Bug: 284424874
Test: npm run test:all
Change-Id: I7a197cf6a7cd27850a870f07edb112ae5c976f67
16 files changed