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

This commit is contained in:
ted.mielczarek%gmail.com 2007-12-21 21:49:32 +00:00
Родитель b8e787bfc5
Коммит e78404e014
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