Bug 1451853 - Include Firefox build id and source URL in profiler meta information. r=mstange

MozReview-Commit-ID: 5MBM31f2UjP

--HG--
extra : rebase_source : 258f2dca59721a4eca92bb63472558d6e212572f
This commit is contained in:
Panos Astithas 2018-05-10 21:37:35 -07:00
Родитель aeace8b471
Коммит 84e5cae688
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -1550,6 +1550,10 @@ StreamMetaJSCustomObject(PSLockRef aLock, SpliceableJSONWriter& aWriter,
aWriter.IntProperty("version", 9);
#if defined(MOZ_SOURCE_URL)
aWriter.StringProperty("sourceURL", "@MOZ_SOURCE_URL@");
#endif
// The "startTime" field holds the number of milliseconds since midnight
// January 1, 1970 GMT. This grotty code computes (Now - (Now -
// ProcessStartTime)) to convert CorePS::ProcessStartTime() into that form.
@ -1636,6 +1640,10 @@ StreamMetaJSCustomObject(PSLockRef aLock, SpliceableJSONWriter& aWriter,
res = appInfo->GetName(string);
if (!NS_FAILED(res))
aWriter.StringProperty("product", string.Data());
res = appInfo->GetAppBuildID(string);
if (!NS_FAILED(res))
aWriter.StringProperty("appBuildID", string.Data());
}
aWriter.StartObjectProperty("extensions");