Expand description
--profile chrome|stderr|tracy profiler install (feature-gated).
Opt-in profiler installation invoked from lumenc run --profile <kind>.
Compiled in only when lumenc is built with the profiling cargo feature
(which also enables bevy_ecs/trace so per-system spans exist at all);
--profile tracy additionally needs profiling-tracy. On a default
build every mode errors at startup with a rebuild hint - the default
binary carries neither span instrumentation nor a subscriber stack.
Installs a tracing subscriber that captures bevy_ecs/trace spans and exports them in one of three formats.
chrome: writeslumen-trace.jsonin the cwd in Chrome trace format; open inchrome://tracingor Perfetto.tracy: connects to a runningtracy-profilerGUI over TCP.stderr: line-per-span formatter writing to stderr.
Structs§
- Profile
Guard - Stub guard for builds without the
profilingfeature -installalways errors before one is constructed, but the type must exist for the CLI’sOption<ProfileGuard>binding to compile.
Enums§
- Profile
Mode - Profiler output mode chosen via
--profile <kind>on the CLI.
Functions§
- install
- Installs a global
tracingsubscriber wired tomodeand returns aProfileGuardthat flushes on drop.