From e7a8c2542aff4e47b65138a72e4238884084e8a5 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Fri, 21 Dec 2007 13:49:32 -0800 Subject: [PATCH] bug 408729 - collect time since open stat. r=mento --- toolkit/crashreporter/nsExceptionHandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp index 3e8fe522d71..20af8ac9e9d 100755 --- a/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -417,6 +417,12 @@ nsresult SetExceptionHandler(nsILocalFile* aXREDirectory, AnnotateCrashReport(NS_LITERAL_CSTRING("ServerURL"), nsDependentCString(aServerURL)); + // store application start time + char timeString[32]; + XP_TTOA(time(NULL), timeString, 10); + AnnotateCrashReport(NS_LITERAL_CSTRING("StartupTime"), + nsDependentCString(timeString)); + #if defined(XP_MACOSX) // On OS X, many testers like to see the OS crash reporting dialog // since it offers immediate stack traces. We allow them to set