Bug 1613991 - Register FS brokers with the profiler. r=jld

Differential Revision: https://phabricator.services.mozilla.com/D62073

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2020-02-07 21:43:25 +00:00
parent 3dd8739d15
commit aa1769613f

View File

@ -628,6 +628,8 @@ void SandboxBroker::ThreadMain(void) {
SprintfLiteral(threadName, "FS Broker %d", mChildPid);
PlatformThread::SetName(threadName);
AUTO_PROFILER_REGISTER_THREAD(threadName);
// Permissive mode can only be enabled through an environment variable,
// therefore it is sufficient to fetch the value once
// before the main thread loop starts