diff options
Diffstat (limited to 'src/client/windows/crash_generation/client_info.h')
-rw-r--r-- | src/client/windows/crash_generation/client_info.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/windows/crash_generation/client_info.h b/src/client/windows/crash_generation/client_info.h index a134d1bb..774816fb 100644 --- a/src/client/windows/crash_generation/client_info.h +++ b/src/client/windows/crash_generation/client_info.h @@ -96,6 +96,10 @@ class ClientInfo { CustomClientInfo GetCustomInfo() const; private: + // Calcualtes the uptime for the client process, converts it to a string and + // stores it in the last entry of client custom info. + void SetProcessUptime(); + // Crash generation server. CrashGenerationServer* crash_server_; @@ -152,6 +156,10 @@ class ClientInfo { // Wait handle for process exit event. HANDLE process_exit_wait_handle_; + // Time when the client process started. It is used to determine the uptime + // for the client process when it signals a crash. + FILETIME start_time_; + // Disallow copy ctor and operator=. ClientInfo(const ClientInfo& client_info); ClientInfo& operator=(const ClientInfo& client_info); |