bug 408729 - collect time since open stat. r=mento

This commit is contained in:
ted.mielczarek@gmail.com 2007-12-21 13:49:32 -08:00
Родитель cc6aa9e30b
Коммит e7a8c2542a
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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