From e3e8511e794a944fb0edabb6dfd22088d682e365 Mon Sep 17 00:00:00 2001 From: Ray Smith Date: Wed, 15 Oct 2025 03:05:30 -0700 Subject: [PATCH] Initialization of profiler zones. PiperOrigin-RevId: 819662587 --- util/threading_context.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/threading_context.cc b/util/threading_context.cc index 8ffd4db..e2c4d03 100644 --- a/util/threading_context.cc +++ b/util/threading_context.cc @@ -20,6 +20,7 @@ #include +#include "util/zones.h" #include "hwy/aligned_allocator.h" #include "hwy/contrib/thread_pool/thread_pool.h" #include "hwy/profiler.h" @@ -100,6 +101,7 @@ ThreadingContext::ThreadingContext(const ThreadingArgs& args) cache_info(topology), allocator(topology, cache_info, args.bind != Tristate::kFalse), pools(topology, allocator, args.max_threads, args.pin) { + InitProfilerZones(profiler); PROFILER_ZONE("Startup.ThreadingContext autotune"); TunePools(hwy::PoolWaitMode::kSpin, pools); // kBlock is the default, hence set/tune it last.