diff options
| author | Stefan Boberg <[email protected]> | 2026-04-20 11:03:13 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-20 11:03:13 +0200 |
| commit | 8b842f161ee114ec9e10da1aa8efe2306836805a (patch) | |
| tree | 53c20f4760491c5ddb1659ba7a6066cffab8e1cf /src/zencore/basicfile.cpp | |
| parent | zencore: implement SearchPathForExecutable on POSIX (#981) (diff) | |
| download | archived-zen-8b842f161ee114ec9e10da1aa8efe2306836805a.tar.xz archived-zen-8b842f161ee114ec9e10da1aa8efe2306836805a.zip | |
added support for trace regions (#984)
- Introduces a UE-trace Region primitive in `zencore/trace.{h,cpp}` for marking named, potentially long-running intervals of work that Unreal Insights render as banners in the timeline, separately from CPU scopes.
- New API:
- `uint64_t TraceBeginRegion(RegionName, Category={})` / `void TraceEndRegion(RegionId)` for manual begin/end pairs.
- `ScopedTraceRegion` RAII helper plus `ZEN_TRACE_REGION(name)` / `ZEN_TRACE_REGION_CAT(name, category)` macros for scope-based use.
- Emits the `Misc.RegionBeginWithId` / `Misc.RegionEndWithId` trace events (paired by a `GetHifreqTimerValue()`-derived id).
- Full no-op fallback under `#if !ZEN_WITH_TRACE` so callers compile in all configurations.
- Annotates `GcScheduler::CollectGarbage` with `ZEN_TRACE_REGION_CAT("GcScheduler::CollectGarbage", "gc")` as a first caller — makes GC passes visible as banners in Insights without relying on the existing `ZEN_TRACE_CPU` scope alone (which doesn't render as a region).
Diffstat (limited to 'src/zencore/basicfile.cpp')
0 files changed, 0 insertions, 0 deletions