kernelfoundry.gui.perfetto

Integration of the Perfetto trace viewer into the NiceGUI frontend for visualizing profiling traces.

Functions

patch(profiler_data_dir)

Call this function once for the process to register the trace viewer button

patch_html()

This needs to be called for each page to enable the trace viewer button

traceviewer(text, trace_path[, trace_title])

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

kernelfoundry.gui.perfetto.patch(profiler_data_dir)[source]

Call this function once for the process to register the trace viewer button