Choosing a profiler or tracer 00:00:01 The CPU profile misses the longest wait One checkout replica is slow. Its CPU profile looks almost identical to the fast replica. Ilya asks where most of a waiting request spends its life when the sampler only visits running threads. Measured off-CPU lock wait changes from two to four hundred sixty milliseconds. A thread asleep behind a lock contributes little to a CPU profile even while that wait dominates elapsed time. The tool must observe the event that could explain the symptom. A CPU sampler sees a running thread. 00:00:33 Choose the instrument for the missing time An off-CPU profile can attribute sleep intervals to the stack where a thread blocked. A trace records selected events in sequence. Sample rates, aggregation keys and attachment scope change both cost and the conclusions a capture supports. Select a resource that could explain the missing work or time. Read evidence for failed operations within the incident interval. Ask how busy the chosen resource was at the relevant scope. Inspect queues and waiting time. If the evidence does not fit, test the next resource. 00:01:08 Find the owner as well as the waiter Should Ilya collect every process argument and a full memory dump to find this lock? Start with a bounded waiting stack and an owner observation on the affected replica. Match their timestamps with the request. Keep collection short and fields minimal, and verify the instrument itself hasn't changed the workload. If the worker is running during the missing interval, sample CPU stacks at representative load and correlate with request class. 00:01:36 Confirm progress at normal traffic After shortening the owner's critical section, off-CPU wait in the example is twelve milliseconds. Check how busy a resource is, how much work waits and what errors it reports. Apply the three questions to each plausible resource at the correct scope. Ilya checks request latency independently. Choose the instrument according to the time that is missing from the explanation.