/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Foundation/System/MiniDumpUtils.h
35 строк
2 KB
Jan Krassnigg
Added option to debug renderer to display info text for some duration (#1420)
31 окт 2024, 00:16
Не верифицирован
31 окт 2024, 00:16
db56d2a
Код
Авторство
О чём код?
#pragma once #include <Foundation/Basics.h> #include <Foundation/Types/Status.h> /// \brief Functionality for writing process mini-dumps (callstacks, memory snapshots, etc) namespace ezMiniDumpUtils { /// \brief Specifies the dump mode that is written. enum class ezDumpType { Auto, ///< Uses the setting specified globally through the command line. MiniDump, ///< Saves a mini-dump without full memory, regardless of this application's command line flag '-fullcrashdumps'. MiniDumpWithFullMemory ///< Saves a mini-dump with full memory, regardless of this application's command line flag '-fullcrashdumps'. }; /// \brief Tries to write a mini-dump for the external process with the given process ID. /// /// \sa WriteProcessMiniDump() EZ_FOUNDATION_DLL ezStatus WriteExternalProcessMiniDump(ezStringView sDumpFile, ezUInt32 uiProcessID, ezDumpType dumpTypeOverride = ezDumpType::Auto); /// \brief Tries to launch ez's 'MiniDumpTool' to write a mini-dump for THIS process (the recommended way when an application is crashing). /// /// \note On Windows: The command line option '-fullcrashdumps' is passed if either set in this application's command line or if overridden through dumpTypeOverride = ezDumpType::MiniDumpWithFullMemory. EZ_FOUNDATION_DLL ezStatus LaunchMiniDumpTool(ezStringView sDumpFile, ezDumpType dumpTypeOverride = ezDumpType::Auto); }; // namespace ezMiniDumpUtils #if EZ_ENABLED(EZ_SUPPORTS_CRASH_DUMPS) # include <MiniDumpUtils_Platform.h> #endif