3#include "client/crashpad_client.h"
33 void threadFunc(
const std::stop_token &stopToken)
const noexcept;
71 explicit Tracer(std::shared_ptr<std::atomic_flag> checkFlag, std::string serverPath =
"",
72 std::string serverProxy =
"",
const std::string &crashpadHandlerPath =
"",
73 const std::string &reportPath =
"", std::vector<base::FilePath> attachments = {});
static bool checkSocketIsRunning(int sockId)
Tracer & operator=(Tracer &&)=delete
Move assignment operator.
Tracer & operator=(Tracer)=delete
Copy assignment operator.
static void dumpSharedLibraryInfo(const std::string &filePath)
Tracer(Tracer &&)=delete
Move constructor.
Tracer(const Tracer &)=delete
Copy constructor.
std::unique_ptr< crashpad::CrashpadClient > _clientHandler
std::unique_ptr< std::jthread > _thread
std::vector< base::FilePath > _attachments
std::shared_ptr< std::atomic_flag > _checkFlag
static std::string getSelfExecutableDir()
std::map< std::string, std::string > _annotations
void threadFunc(const std::stop_token &stopToken) const noexcept
Tracer(std::shared_ptr< std::atomic_flag > checkFlag, std::string serverPath="", std::string serverProxy="", const std::string &crashpadHandlerPath="", const std::string &reportPath="", std::vector< base::FilePath > attachments={})
static bool checkPidIsRunning(pid_t processId)