kernelfoundry.gui.perfetto¶
Integration of the Perfetto trace viewer into the NiceGUI frontend for visualizing profiling traces.
Functions
|
Call this function once for the process to register the trace viewer button |
This needs to be called for each page to enable the trace viewer button |
|
|
Create a button for opening the trace file in the web viewer (new tab) :param text: Button text :param trace_path: Path to the trace json file :param trace_title: Title to show in the trace viewer |
- kernelfoundry.gui.perfetto.patch_html()[source]¶
This needs to be called for each page to enable the trace viewer button
- kernelfoundry.gui.perfetto.traceviewer(text: str, trace_path: Path, trace_title: str = 'Untitled trace')[source]¶
Create a button for opening the trace file in the web viewer (new tab) :param text: Button text :param trace_path: Path to the trace json file :param trace_title: Title to show in the trace viewer