MCPcopy Create free account
hub / github.com/adny-code/fastgrind / _select_top_function

Method _select_top_function

tools/fastgrind.py:2695–2706  ·  view source on GitHub ↗
(self, _event: Any)

Source from the content-addressed store, hash-verified

2693 self.status_var.set(f"Inspected tick {payload['tick']}")
2694
2695 def _select_top_function(self, _event: Any) -> None:
2696 item = self.top_tree.focus()
2697 function_id = self.top_function_ids.get(item)
2698 if function_id is None:
2699 return
2700 index = self.function_index_by_id.get(function_id)
2701 if index is None:
2702 return
2703 self.function_list.selection_clear(0, self.tk.END)
2704 self.function_list.selection_set(index)
2705 self.function_list.see(index)
2706 self._plot_current()
2707
2708 def _render_stack_tree_panel(self, tree: dict[str, Any] | None) -> None:
2709 self.stack_tree.delete(*self.stack_tree.get_children())

Callers

nothing calls this directly

Calls 1

_plot_currentMethod · 0.95

Tested by

no test coverage detected