(text: String, addr_or_line: u64)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected