/// SetGoroutineName assigns a name to the current goroutine
runtime.SetGoroutineName(string name)
/// GetGoroutineName returns the name assigned to the current goroutine
runtime.GetGoroutineName() string--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Don't disagree and I should have added that the GetGoroutineName API is not required. I had similar concerns that it could be abused at runtime. With it excluded, are there still concerns?
Whilst it is true a stack trace would likely identify "background" goroutines, locating them within gdb would still be simplified if one could name certain goroutines. Also by enabling goroutine naming, we would have another data point when mining debug / profile data.
You received this message because you are subscribed to a topic in the Google Groups "golang-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-dev/s8qm8n_uHNY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Tuesday, August 19, 2014, Stuart Carnie <stuart...@gmail.com> wrote:Don't disagree and I should have added that the GetGoroutineName API is not required. I had similar concerns that it could be abused at runtime. With it excluded, are there still concerns?
Whilst it is true a stack trace would likely identify "background" goroutines, locating them within gdb would still be simplified if one could name certain goroutines. Also by enabling goroutine naming, we would have another data point when mining debug / profile data.You don't have access to stack-traces when debugging / profiling?
To unsubscribe from this group and all its topics, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Carlos Castillo