MCPcopy Create free account
hub / github.com/elastic/devfiler / FlameGraphWidget

Class FlameGraphWidget

src/ui/tabs/flamegraph.rs:143–154  ·  view source on GitHub ↗

Widget drawing a flame-graph. Separate from [`FlameGraphTab`] to allow reusing it later (e.g. for differential flamegraph / sandwich views).

Source from the content-addressed store, hash-verified

141/// Separate from [`FlameGraphTab`] to allow reusing it later (e.g. for
142/// differential flamegraph / sandwich views).
143struct FlameGraphWidget {
144 origin: Pos2,
145 x_zoom: f32,
146 filter: String,
147 sandwich_view: Option<SandwichView>,
148
149 matching_frames: Vec<MatchingFrame>,
150 current_match_index: usize,
151 match_count: usize,
152 cached_filter: String,
153 rebuild_matches: bool,
154}
155
156/// Sandwich view showing callers above and callees below a selected frame
157struct SandwichView {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected