Skip to content

Instantly share code, notes, and snippets.

@debnath
Created December 1, 2017 03:43
Show Gist options
  • Save debnath/ff084e83d77dae8aafd737c6ca510958 to your computer and use it in GitHub Desktop.
Save debnath/ff084e83d77dae8aafd737c6ca510958 to your computer and use it in GitHub Desktop.
Tracing Golang app execution
f, err := os.Create("cpu.trace")
if err != nil {
panic(err)
}
trace.Start(f)
defer trace.Stop()
@debnath
Copy link
Author

debnath commented Dec 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment