|
Bicameral Engine
GPU-resident engine for a magic-research open-world game
|
#include <trace_capture.h>
Public Member Functions | |
| TraceCapture (fs::path path, const gpu::GraphTraceFilter &filter) | |
| void | Add (std::span< const gpu::GraphTraceRecord > records, uint32_t droppedCount) |
| bool | IsComplete (uint64_t latestStateTick) const |
| std::expected< void, std::string > | Write () |
| const fs::path & | Path () const |
| const gpu::GraphTraceFilter & | Filter () const |
Static Public Attributes | |
| static constexpr size_t | MAX_RECORDS = size_t{1} << 22 |
Private Attributes | |
| fs::path | m_path |
| gpu::GraphTraceFilter | m_filter |
| std::vector< gpu::GraphTraceRecord > | m_records |
| uint64_t | m_droppedCount = 0 |
Definition at line 20 of file trace_capture.h.
|
inline |
Definition at line 25 of file trace_capture.h.
| void bicameral::frame::TraceCapture::Add | ( | std::span< const gpu::GraphTraceRecord > | records, |
| uint32_t | droppedCount ) |
Definition at line 15 of file trace_capture.cpp.
References m_droppedCount, m_records, and MAX_RECORDS.
Referenced by bicameral::frame::anonymous_namespace{frame_loop.cpp}::FrameLoop::CollectTrace().
|
inlinenodiscard |
Definition at line 38 of file trace_capture.h.
References m_filter.
|
nodiscard |
Definition at line 24 of file trace_capture.cpp.
References m_filter.
Referenced by bicameral::frame::anonymous_namespace{frame_loop.cpp}::FrameLoop::CollectTrace().
|
inlinenodiscard |
Definition at line 37 of file trace_capture.h.
References m_path.
|
nodiscard |
Definition at line 31 of file trace_capture.cpp.
References bicameral::Info, bicameral::Log(), m_droppedCount, m_filter, m_path, m_records, bicameral::Sim, bicameral::ToUtf8(), bicameral::Warning, and bicameral::sim::WriteProbeTraceFile().
Referenced by bicameral::frame::anonymous_namespace{frame_loop.cpp}::FrameLoop::CollectTrace().
|
private |
Definition at line 44 of file trace_capture.h.
|
private |
Definition at line 42 of file trace_capture.h.
Referenced by Filter(), IsComplete(), TraceCapture(), and Write().
|
private |
Definition at line 41 of file trace_capture.h.
Referenced by Path(), TraceCapture(), and Write().
|
private |
Definition at line 43 of file trace_capture.h.
|
staticconstexpr |
Definition at line 22 of file trace_capture.h.
Referenced by Add().