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

Method new_meta_node

src/ui/tabs/flamegraph.rs:825–838  ·  view source on GitHub ↗
(text: String, addr_or_line: u64)

Source from the content-addressed store, hash-verified

823 }
824
825 pub fn new_meta_node(text: String, addr_or_line: u64) -> Self {
826 FlameGraphNode {
827 text,
828 weight: 0,
829 id: FrameId {
830 file_id: FileId::from(0),
831 addr_or_line: addr_or_line,
832 },
833 fg_color: Color32::WHITE,
834 inline_skip: 0,
835 bg_color: Color32::from_rgb(0x39, 0x3D, 0x3F),
836 children: Vec::with_capacity(1024),
837 }
838 }
839
840 /// Node's weight including children.
841 pub fn weight_children(&self) -> u64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected