[go-nuts] Re: Number of OS threads used by Go runtime

2017-04-12 Thread Val
For visualization of this value over time, you may use go tool trace https://making.pusher.com/go-tool-trace/ HTH, Val On Thursday, April 6, 2017 at 5:37:55 PM UTC+

[go-nuts] Re: Number of OS threads used by Go runtime

2017-04-07 Thread C Banning
Or: https://play.golang.org/p/ZgI19Z4uU1 On Thursday, April 6, 2017 at 9:37:55 AM UTC-6, Юрий Шахматов wrote: > > Hi all! > > Is there any way to count number of OS threads used by Go runtime > programmatically (ie without using bash with top/ps and others)? > > -- > Best regards, Yuri > -- Yo

Re: [go-nuts] Re: Number of OS threads used by Go runtime

2017-04-06 Thread Ian Lance Taylor
On Thu, Apr 6, 2017 at 11:18 AM, Uli Kunitz wrote: > I suggest to give n, _ := runtime.ThreadCreateProfile(nil) a try. Good point, yes, that should work. Ian > On Thursday, April 6, 2017 at 5:37:55 PM UTC+2, Юрий Шахматов wrote: >> >> Hi all! >> >> Is there any way to count number of OS threads

[go-nuts] Re: Number of OS threads used by Go runtime

2017-04-06 Thread Uli Kunitz
I suggest to give n, _ := runtime.ThreadCreateProfile(nil) a try. On Thursday, April 6, 2017 at 5:37:55 PM UTC+2, Юрий Шахматов wrote: > > Hi all! > > Is there any way to count number of OS threads used by Go runtime > programmatically (ie without using bash with top/ps and others)? > > -- > Be