mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-22 22:14:25 +03:00
Add minimap preprocess timing
This commit is contained in:
parent
97c85adcc5
commit
6878e9270d
@ -412,6 +412,7 @@ export class FlamechartMinimapView extends Component<FlamechartMinimapViewProps,
|
||||
|
||||
private preprocess(flamechart: Flamechart) {
|
||||
if (!this.canvas || !this.regl) return
|
||||
console.time('minimap preprocess')
|
||||
const configSpaceRects: Rect[] = []
|
||||
const colors: vec3[] = []
|
||||
|
||||
@ -431,6 +432,7 @@ export class FlamechartMinimapView extends Component<FlamechartMinimapViewProps,
|
||||
|
||||
this.renderer = rectangleBatchRenderer(this.regl, configSpaceRects, colors, 0)
|
||||
this.viewportRectRenderer = viewportRectangleRenderer(this.regl);
|
||||
console.timeEnd('minimap preprocess')
|
||||
}
|
||||
|
||||
private overlayCanvasRef = (element?: Element) => {
|
||||
|
Loading…
Reference in New Issue
Block a user