mitiru::debug
Namespace catalog extracted from docs/API_CATALOG.md (24 types, 142 items).
Namespace catalog extracted from docs/API_CATALOG.md (24 types, 142 items).
| Name | Kind | Items |
|---|---|---|
ConsoleLogger | class | 1 |
DebugPanel | class | 4 |
FileLogger | class | 3 |
IGpuTimer | class | 5 |
NullGpuTimer | class | 5 |
GpuProfileScope | class | 6 |
GpuTimer | class | 19 |
GpuTimerScope | class | 6 |
IDebugOverlay | class | 10 |
LogLevel | enum | 5 |
ILogger | class | 10 |
Log | class | 3 |
NullDebugOverlay | class | 9 |
NullLogger | class | 1 |
ProfileSample | struct | 5 |
FrameProfile | struct | 3 |
MemoryStats | struct | 4 |
SystemTiming | struct | 2 |
ProfilerOverlay | class | 13 |
LogSystemLevel | enum | 7 |
SinkType | enum | 3 |
SinkConfig | struct | 3 |
LogSystem | class | 6 |
TracyHelper | class | 9 |
class ConsoleLogger : public ILogger 1
void log(LogLevel level, std::string_view category, std::string_view message) overrideclass DebugPanel 4
explicit DebugPanel(IDebugOverlay* overlay) noexceptvoid draw(const Engine& engine)void toggle() noexcept[[nodiscard]] bool isVisible() const noexceptclass FileLogger : public ILogger 3
explicit FileLogger(const std::string& filePath, bool append = false)[[nodiscard]] bool isOpen() const noexceptvoid log(LogLevel level, std::string_view category, std::string_view message) overrideclass IGpuTimer 5
virtual ~IGpuTimer() = defaultvirtual void begin(std::string_view name) = 0virtual void end(std::string_view name) = 0[[nodiscard]] virtual std::map<std::string, float> getResults() const = 0virtual void reset() = 0class NullGpuTimer : public IGpuTimer 5
void begin(std::string_view name) overridevoid end(std::string_view) override[[nodiscard]] std::map<std::string, float> getResults() const overridevoid reset() override[[nodiscard]] std::size_t sectionCount() const noexceptclass GpuProfileScope 6
GpuProfileScope(IGpuTimer* timer, std::string_view name)~GpuProfileScope()GpuProfileScope(const GpuProfileScope&) = deleteGpuProfileScope& operator=(const GpuProfileScope&) = deleteGpuProfileScope(GpuProfileScope&&) = deleteGpuProfileScope& operator=(GpuProfileScope&&) = deleteclass GpuTimer 19
enum `Pass : std::uint8_t` { Shadow, Main3D, PostProcess, UI2D, Count }GpuTimer() noexcept~GpuTimer()GpuTimer(const GpuTimer&) = deleteGpuTimer& operator=(const GpuTimer&) = deleteGpuTimer(GpuTimer&&) = deleteGpuTimer& operator=(GpuTimer&&) = deletebool init(ID3D11Device* device, ID3D11DeviceContext* context)bool initGL()bool initNull() noexceptvoid shutdown()void beginFrame()void beginPass(Pass p)void endPass(Pass p)void resolve()[[nodiscard]] float passMs(Pass p) const noexcept[[nodiscard]] float totalGpuMs() const noexcept[[nodiscard]] bool isInitialized() const noexcept[[nodiscard]] static constexpr std::string_view passName(Pass p) noexceptclass GpuTimerScope 6
GpuTimerScope(GpuTimer& timer, GpuTimer::Pass pass) noexcept~GpuTimerScope()GpuTimerScope(const GpuTimerScope&) = deleteGpuTimerScope& operator=(const GpuTimerScope&) = deleteGpuTimerScope(GpuTimerScope&&) = deleteGpuTimerScope& operator=(GpuTimerScope&&) = deleteclass IDebugOverlay 10
virtual ~IDebugOverlay() = defaultvirtual void beginFrame() = 0virtual void endFrame() = 0virtual void text(std::string_view label, std::string_view value) = 0virtual bool slider(std::string_view label, float& value, float min, float max) = 0virtual bool checkbox(std::string_view label, bool& value) = 0virtual bool button(std::string_view label) = 0virtual void separator() = 0virtual bool beginWindow(std::string_view title) = 0virtual void endWindow() = 0enum LogLevel : std::uint8_t 5
Trace = 0DebugInfoWarnErrorclass ILogger 10
virtual ~ILogger() = defaultvirtual void log(LogLevel level, std::string_view category, std::string_view message) = 0virtual void setMinLevel(LogLevel level) noexcept[[nodiscard]] LogLevel minLevel() const noexcept[[nodiscard]] bool shouldLog(LogLevel level) const noexceptvoid trace(std::string_view category, std::string_view msg)void debug(std::string_view category, std::string_view msg)void info(std::string_view category, std::string_view msg)void warn(std::string_view category, std::string_view msg)void error(std::string_view category, std::string_view msg)class Log 3
[[nodiscard]] static ILogger& get() noexceptstatic void setLogger(std::shared_ptr<ILogger> logger)static void reset()class NullDebugOverlay : public IDebugOverlay 9
void beginFrame() overridevoid endFrame() overridevoid text(std::string_view label, std::string_view value) overridebool slider(std::string_view label, float& value, float min, float max) overridebool checkbox(std::string_view label, bool& value) overridebool button(std::string_view label) overridevoid separator() overridebool beginWindow(std::string_view title) overridevoid endWindow() overrideclass NullLogger : public ILogger 1
void log(LogLevel , std::string_view , std::string_view ) overridestruct ProfileSample 5
std::string namefloat startTimeMs = 0.0ffloat durationMs = 0.0fint depth = 0std::uint32_t color = 0xFFFFFFFFstruct FrameProfile 3
std::vector<ProfileSample> samplesfloat totalFrameMs = 0.0ffloat gpuMs = 0.0fstruct MemoryStats 4
std::uint64_t allocated = 0std::uint64_t freed = 0std::uint64_t peak = 0std::uint64_t current = 0struct SystemTiming 2
std::string namefloat durationMs = 0.0fclass ProfilerOverlay 13
explicit ProfilerOverlay(std::size_t historySize = 120) noexceptvoid pushFrame(FrameProfile frame)[[nodiscard]] std::vector<ProfileSample> getFlameGraphData() const[[nodiscard]] const std::vector<float>& fpsHistory() const noexcept[[nodiscard]] float averageFps() const noexcept[[nodiscard]] float minFps() const noexcept[[nodiscard]] float maxFps() const noexceptvoid recordAllocation(std::uint64_t bytes) noexceptvoid recordFree(std::uint64_t bytes) noexcept[[nodiscard]] const MemoryStats& memoryStats() const noexcept[[nodiscard]] const std::vector<SystemTiming>& systemTimings() const noexcept[[nodiscard]] const FrameProfile& latestFrame() const noexcept[[nodiscard]] std::size_t maxHistory() const noexceptenum LogSystemLevel : std::uint8_t 7
Trace = 0DebugInfoWarnErrorCriticalOffenum SinkType : std::uint8_t 3
ConsoleFileCustomstruct SinkConfig 3
SinkType type = SinkType::Consolestd::string filePathstd::shared_ptr<ILogger> customLoggerclass LogSystem 6
static void init(const std::string& logFile = "", LogSystemLevel level = LogSystemLevel::Info)static void setLevel(LogSystemLevel level)static void flush()static void addSink(const SinkConfig& config)[[nodiscard]] static LogSystemLevel level() noexceptstatic void shutdown()class TracyHelper 9
[[nodiscard]] static constexpr bool isAvailable() noexceptstatic void markFrame() noexceptstatic void plotValue([[maybe_unused]] const char* name, [[maybe_unused]] double value) noexceptstatic void plotValue([[maybe_unused]] const char* name, [[maybe_unused]] std::int64_t value) noexceptstatic void message([[maybe_unused]] std::string_view text) noexceptstatic void messageColor([[maybe_unused]] std::string_view text, [[maybe_unused]] std::uint32_t color) noexceptstatic void setThreadName([[maybe_unused]] const char* name) noexceptstatic void trackAlloc([[maybe_unused]] const void* ptr, [[maybe_unused]] std::size_t size) noexceptstatic void trackFree([[maybe_unused]] const void* ptr) noexceptSourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.