2026-04-11 17:07:37 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
|
|
namespace XCEngine::UI::Editor {
|
|
|
|
|
|
|
|
|
|
void InitializeUIEditorRuntimeTrace(const std::filesystem::path& logRoot);
|
|
|
|
|
void ShutdownUIEditorRuntimeTrace();
|
|
|
|
|
|
|
|
|
|
void AppendUIEditorRuntimeTrace(
|
|
|
|
|
std::string_view channel,
|
|
|
|
|
std::string_view message);
|
|
|
|
|
|
|
|
|
|
void AppendUIEditorCrashTrace(
|
|
|
|
|
std::uint32_t exceptionCode,
|
|
|
|
|
const void* exceptionAddress);
|
|
|
|
|
|
|
|
|
|
std::filesystem::path GetUIEditorRuntimeTracePath();
|
|
|
|
|
std::filesystem::path GetUIEditorCrashTracePath();
|
2026-04-13 18:52:30 +08:00
|
|
|
bool IsUIEditorRuntimeTraceInitialized();
|
2026-04-11 17:07:37 +08:00
|
|
|
|
|
|
|
|
} // namespace XCEngine::UI::Editor
|