|
@@ -30,6 +30,7 @@
|
|
|
#include "services/device/public/mojom/constants.mojom.h"
|
|
|
#include "services/network/public/cpp/features.h"
|
|
|
#include "services/service_manager/public/cpp/connector.h"
|
|
|
+#include "services/tracing/public/cpp/stack_sampling/tracing_sampler_profiler.h"
|
|
|
#include "shell/app/atom_main_delegate.h"
|
|
|
#include "shell/browser/api/atom_api_app.h"
|
|
|
#include "shell/browser/api/trackable_object.h"
|
|
@@ -383,6 +384,12 @@ int AtomBrowserMainParts::PreCreateThreads() {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+void AtomBrowserMainParts::PostCreateThreads() {
|
|
|
+ base::PostTask(
|
|
|
+ FROM_HERE, {content::BrowserThread::IO},
|
|
|
+ base::BindOnce(&tracing::TracingSamplerProfiler::CreateOnChildThread));
|
|
|
+}
|
|
|
+
|
|
|
void AtomBrowserMainParts::PostDestroyThreads() {
|
|
|
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
|
|
extensions_browser_client_.reset();
|