зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1355123 - Initialize gecko profiler properly for IPDL test runner. r=mstange,njn
MozReview-Commit-ID: C9hkZPj3SVL
This commit is contained in:
Родитель
8f58bc59e0
Коммит
da0e46ae95
|
@ -770,6 +770,12 @@ XRE_InitParentProcess(int aArgc,
|
|||
NS_ENSURE_ARG_POINTER(aArgv);
|
||||
NS_ENSURE_ARG_POINTER(aArgv[0]);
|
||||
|
||||
// Set main thread before we initialize the profiler
|
||||
NS_SetMainThread();
|
||||
|
||||
char aLocal;
|
||||
GeckoProfilerInitRAII profiler(&aLocal);
|
||||
|
||||
ScopedXREEmbed embed;
|
||||
|
||||
gArgc = aArgc;
|
||||
|
|
|
@ -1981,7 +1981,6 @@ profiler_init(void* aStackTop)
|
|||
{
|
||||
LOG("profiler_init");
|
||||
|
||||
MOZ_RELEASE_ASSERT(NS_IsMainThread());
|
||||
MOZ_RELEASE_ASSERT(!gPS);
|
||||
|
||||
const char* features[] = { "js"
|
||||
|
|
Загрузка…
Ссылка в новой задаче