trace viewer/traceviewer component which can render large traces
- webgl renderer
- canvas renderer
- canvas renderer (showing multiple aligned traces)
- dom renderer (less complete)
I haven't quite cleaned this up for release yet, but if you want to try it now, you can clone this repo. The API is:
import Trace from './src/Trace';
<Trace
truncateLabels={true} // middle-truncate measure labels to fit width
trace={[{name: 'something', startTime: 100, duration: 20]} // array of objects like https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure
viewportWidth={1024}
viewportHeight={768}
renderer="webgl" // or "canvas" or "dom"
/>