|
Unravel Engine C++ Reference
|
Compacted copy of one frame's profiling data across all threads. More...
#include <profiler.h>
Classes | |
| struct | thread_snapshot |
Public Attributes | |
| int64_t | frame_start_ns {0} |
| int64_t | frame_end_ns {0} |
| int64_t | event_min_ns {0} |
| int64_t | event_max_ns {0} |
| int64_t | cpu_heap_used_bytes {0} |
| Managed heap used (e.g. Mono GC) sampled at capture; bytes. | |
| int64_t | gpu_memory_used_bytes {0} |
| Total GPU memory reported by bgfx at capture; bytes. | |
| int64_t | process_resident_bytes {0} |
| Process resident set (RSS / working set) at capture; bytes. | |
| float | frame_wall_ms {0.0f} |
| Wall-clock frame duration in milliseconds (cached at capture for UI). | |
| float | frame_busy_ms {0.0f} |
| Main-thread busy time in milliseconds (Frame Loop CPU, or longest main root). | |
| float | frame_cpu_ratio {1.0f} |
frame_busy_ms / frame_wall_ms — fraction of the frame the main thread was running. | |
| std::vector< thread_snapshot > | threads |
Compacted copy of one frame's profiling data across all threads.
Definition at line 200 of file profiler.h.
| int64_t unravel::frame_snapshot::cpu_heap_used_bytes {0} |
Managed heap used (e.g. Mono GC) sampled at capture; bytes.
Definition at line 207 of file profiler.h.
| int64_t unravel::frame_snapshot::event_max_ns {0} |
Definition at line 205 of file profiler.h.
| int64_t unravel::frame_snapshot::event_min_ns {0} |
Definition at line 204 of file profiler.h.
| float unravel::frame_snapshot::frame_busy_ms {0.0f} |
Main-thread busy time in milliseconds (Frame Loop CPU, or longest main root).
Definition at line 215 of file profiler.h.
| float unravel::frame_snapshot::frame_cpu_ratio {1.0f} |
frame_busy_ms / frame_wall_ms — fraction of the frame the main thread was running.
Definition at line 217 of file profiler.h.
| int64_t unravel::frame_snapshot::frame_end_ns {0} |
Definition at line 203 of file profiler.h.
| int64_t unravel::frame_snapshot::frame_start_ns {0} |
Definition at line 202 of file profiler.h.
| float unravel::frame_snapshot::frame_wall_ms {0.0f} |
Wall-clock frame duration in milliseconds (cached at capture for UI).
Definition at line 213 of file profiler.h.
| int64_t unravel::frame_snapshot::gpu_memory_used_bytes {0} |
Total GPU memory reported by bgfx at capture; bytes.
Definition at line 209 of file profiler.h.
| int64_t unravel::frame_snapshot::process_resident_bytes {0} |
Process resident set (RSS / working set) at capture; bytes.
Definition at line 211 of file profiler.h.
| std::vector<thread_snapshot> unravel::frame_snapshot::threads |
Definition at line 226 of file profiler.h.