diff --git a/static/app/components/profiling/flamegraph/flamegraphZoomView.tsx b/static/app/components/profiling/flamegraph/flamegraphZoomView.tsx index 44b4066be5e758..250fd59a0a8010 100644 --- a/static/app/components/profiling/flamegraph/flamegraphZoomView.tsx +++ b/static/app/components/profiling/flamegraph/flamegraphZoomView.tsx @@ -13,7 +13,6 @@ import type {CanvasView} from 'sentry/utils/profiling/canvasView'; import type {DifferentialFlamegraph} from 'sentry/utils/profiling/differentialFlamegraph'; import type {Flamegraph} from 'sentry/utils/profiling/flamegraph'; import {handleFlamegraphKeyboardNavigation} from 'sentry/utils/profiling/flamegraph/flamegraphKeyboardNavigation'; -import type {FlamegraphSearchResult} from 'sentry/utils/profiling/flamegraph/flamegraphStateProvider/reducers/flamegraphSearch'; import {useFlamegraphSearch} from 'sentry/utils/profiling/flamegraph/hooks/useFlamegraphSearch'; import { useDispatchFlamegraphState, @@ -22,7 +21,6 @@ import { import {useFlamegraphTheme} from 'sentry/utils/profiling/flamegraph/useFlamegraphTheme'; import type {FlamegraphCanvas} from 'sentry/utils/profiling/flamegraphCanvas'; import type {FlamegraphFrame} from 'sentry/utils/profiling/flamegraphFrame'; -import {getFlamegraphFrameSearchId} from 'sentry/utils/profiling/flamegraphFrame'; import { computeMinZoomConfigViewForFrames, getConfigViewTranslationBetweenVectors, @@ -289,17 +287,9 @@ function FlamegraphZoomView({ ); } - const frameMap = frames.reduce>( - (acc, frame) => { - acc.set(getFlamegraphFrameSearchId(frame), {frame, match: []}); - return acc; - }, - new Map() - ); - - flamegraphRenderer.setSearchResults('', frameMap); selectedFramesRef.current = frames; } + if (flamegraphState.search.query && !flamegraphState.search.highlightFrames) { flamegraphRenderer.setSearchResults( flamegraphState.search.query, diff --git a/static/app/utils/profiling/renderers/flamegraphRendererWebGL.tsx b/static/app/utils/profiling/renderers/flamegraphRendererWebGL.tsx index 1a690682437da0..477231249601e9 100644 --- a/static/app/utils/profiling/renderers/flamegraphRendererWebGL.tsx +++ b/static/app/utils/profiling/renderers/flamegraphRendererWebGL.tsx @@ -300,6 +300,7 @@ export class FlamegraphRendererWebGL extends FlamegraphRenderer { this.program, 'a_is_search_result' ); + createAndBindBuffer(this.ctx, this.searchResults, this.ctx.STATIC_DRAW); pointToAndEnableVertexAttribute(this.ctx, this.attributes.a_is_search_result, { size: 1,