Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A service has intermittent scheduler latency between goroutines, but a CPU profile shows no dominant function. Which evidence is most suitable next?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-5/checkpoint-5-trace-choice/).
Context (verbatim from the page):
"""
A service has intermittent scheduler latency between goroutines, but a CPU profile shows no dominant function. Which evidence is most suitable next?
Collect a bounded execution trace and inspect scheduler events and goroutine timelines.
Increase the benchmark duration and infer the scheduler sequence from ns/op.
Run `go vet` because static analysis records runtime scheduling events.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.