Re: [go-nuts] pprof not showing call hierarchy for time.now and time.Until

2019-10-19 Thread Piers Powlesland
Kind of, but due to the sheer number of nodes and edged the edges end up lying on top of each other so in certain cases you end up having to check the source of several nodes to see which is the caller. On Sat, 19 Oct 2019, 03:08 Robert Engels, wrote: > But also can’t you just find that node in

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-19 Thread kddavidson722
Hi Stuart, (I'm not 100% confident, so take this with a grain of salt ;) ) In my experience, I have always found it best to have go.mod in the project's root directory (as well as only using one go.mod per repo). You could also use go mod vendor command, which will download all of the depende

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-19 Thread Stuart Davies
-K Thanks for the comments. I am thinking I should separate the example from the modules and they should both have go.mod files. I have to say that up until now I was 100% focused on go but I have spend the last couple of days focused on modules and it is very frustrating. I will see what happ

Re: [go-nuts] Doubts regarding implementation of runtime profiler

2019-10-19 Thread Ian Lance Taylor
On Fri, Oct 18, 2019 at 11:03 PM Nidhi Agrawal wrote: > > Golang runtime profiler (for cpu & trace) gives us an option to decide the > time of profiling. It then sets the rate of profiling at start of the call > and reset the rate at the end of the call. So it goes like this > > CPUProfiling() {

Re: [go-nuts] Re: [security] Go 1.13.2 and Go 1.12.11 are released

2019-10-19 Thread Ian Lance Taylor
On Fri, Oct 18, 2019 at 4:59 PM Anthony Martin wrote: > > Katie Hockman once said: > > The Go 1.13.2 release also includes a fix to the compiler that prevents > > improper access to negative slice indexes in rare cases. Affected code, in > > which the compiler can prove that the index is zero or

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-19 Thread Stuart Davies
OK I think I have cracked it! I needed a *go.mod* file in the root path. module github.com/mygit/webserver go 1.13 This basically means that the *go.mod* file in examples can find a *go.mod* file at ../ replace github.com/mygit/webserver => ../ The clue was in the error message from earlier.

Re: [go-nuts] Doubts regarding implementation of runtime profiler

2019-10-19 Thread Nidhi Agrawal
HI Ian, We don't need to set MemProfileRate. It is about block and mutex profiling where we need to set the rate (SetBlockProfileRate, SetMutexProfileFraction) at application start. Is there any performance impacts of doing that ? It is not causing any issue we want to enable block and mutex prof

Re: [go-nuts] Doubts regarding implementation of runtime profiler

2019-10-19 Thread Ian Lance Taylor
On Sat, Oct 19, 2019 at 7:34 PM Nidhi Agrawal wrote: > > We don't need to set MemProfileRate. It is about block and mutex profiling > where we need to set the rate (SetBlockProfileRate, SetMutexProfileFraction) > at application start. Is there any performance impacts of doing that ? > > It is no

Re: [go-nuts] Doubts regarding implementation of runtime profiler

2019-10-19 Thread Nidhi Agrawal
https://golang.org/src/runtime/mprof.go, https://golang.org/pkg/net/http/pprof/ here it is mentioned that we need to set SetBlockProfileRate to get enable block profile. In case of block profiling if I set rate just before profiling and reset it to 0 after profiling i am not getting any data. I a

[go-nuts] [ANN] SFTPGo 0.9.3 Released

2019-10-19 Thread Nicola Murino
I'm pleased to announce SFTPGo 0.9.3. Here are the main new features compared to 0.9.2 version: - SFTP upload resume support. - Web based interface to easily manage users and connections. You can find the full list of features and the documentation on the project page: https://github.com/drakk