2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Diagnostics
|
|
|
|
{
|
|
|
|
public:
|
2022-07-28 13:39:57 +00:00
|
|
|
static void Initialize();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static void SetProcessName(const std::string& name);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static void SetProcessFileName(const std::string& name);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static void SetOutDirectory(const std::string& path);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static void SetProduceMemoryDump(bool value);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static const std::string& GetProcessName();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static const std::string& GetProcessFileName();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static const std::string& GetOutDirectory();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
static bool GetProduceMemoryDump();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
private:
|
2022-07-28 13:39:57 +00:00
|
|
|
static std::string m_ProcessName;
|
|
|
|
static std::string m_ProcessFileName;
|
|
|
|
static std::string m_OutDirectory;
|
|
|
|
static bool m_ProduceMemoryDump;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|