MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ inspect_scheduler()

MAYAFLUX_API void MayaFlux::Portal::Forma::inspect_scheduler ( )

Open or show the TaskScheduler inspection window.

First call creates a dedicated window, builds the InspectResult, and schedules tap_all() via Bridge. Subsequent calls show() the existing window.

Definition at line 192 of file Forma.cpp.

193{
194 if (g_inspect_scheduler_window) {
195 g_inspect_scheduler_window->show();
196 return;
197 }
198
199 auto& atelier = internal::atelier();
200
201 g_inspect_scheduler_window = atelier.create_window(
202 Core::WindowCreateInfo { .title = "TaskScheduler", .width = k_inspect_w, .height = k_inspect_h });
203
204 auto surface = atelier.create_surface(g_inspect_scheduler_window, "TaskScheduler");
205 LayoutCursor cursor;
206 auto& result = atelier.inspector().scheduler(surface, cursor);
207 atelier.bridge().spawn_sync(result.group.header.header_id, [&result] { result.tap_all(); });
208}
void spawn_sync(uint32_t id, std::function< void()> sync_fn)
Spawn a per-frame GraphicsRoutine that calls sync_fn each tick.
Definition Bridge.cpp:368
InspectResult & scheduler(Surface &surface, LayoutCursor &cursor, float x_min=-0.95F, float x_max=0.95F, float row_h=0.05F)
Inspect the full TaskScheduler state.
std::shared_ptr< Core::Window > create_window(const Core::WindowCreateInfo &info)
Create a window through the stored WindowManager and show it.
Definition Atelier.cpp:101
Inspector & inspector()
Inspector instance constructed during initialize.
Definition Atelier.cpp:87
Surface create_surface(std::shared_ptr< Core::Window > window, std::string name)
create_layer plus ownership of the window, as a Surface.
Definition Atelier.cpp:146
Bridge & bridge()
Bridge instance constructed during initialize.
Definition Atelier.cpp:77
std::string title
Window title/identifier.
Configuration for creating a single window instance.

References MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::internal::Atelier::bridge(), MayaFlux::Portal::Forma::internal::Atelier::create_surface(), MayaFlux::Portal::Forma::internal::Atelier::create_window(), MayaFlux::Portal::Forma::internal::Atelier::inspector(), MayaFlux::Portal::Forma::Inspector::scheduler(), MayaFlux::Portal::Forma::Bridge::spawn_sync(), and MayaFlux::Core::WindowCreateInfo::title.

+ Here is the call graph for this function: