Skip to main content

Perfetto Arrow Parser

from v9.4status Work-in-Progress

parsePerfettoTraceToArrow(...) decodes Perfetto protobuf traces into Arrow row streams for tracks, slices, processes, and threads.

import {parsePerfettoTraceToArrow} from '@deck.gl-community/trace-layers/trace';

Exported contracts

  • parsePerfettoTraceToArrow(...)
  • TracksSchema
  • SlicesSchema
  • ProcessesSchema
  • ThreadsSchema
  • ArrowTraceConsumer
  • TrackRow
  • SliceRow
  • ProcessRow
  • ThreadRow

Use it for

  • ingesting Perfetto protobuf traces into an Arrow-oriented normalization path
  • inspecting Perfetto track, slice, process, and thread rows before building shared trace objects

The parser output is still source-shaped. Normalize it into JSONTrace, TraceGraphData, or TraceChunkData before rendering.

See Data model and Loading traces.