[go-nuts] Why is there a huge gap between the memory profile's inuse_space in pprof and the externally obtained memory footprint?

2024-07-20 Thread Zxilly Chou
I'm working on the project https://github.com/Zxilly/go-size-analyzer, a program that can be very memory intensive, so I've written some scripts to fetch the pprof file during integration testing, and I'm using python's psutil to read the cpu and memory usage to automatically plot into the im

Re: [go-nuts] this code sometimes hangs

2024-07-20 Thread 'Brian Candler' via golang-nuts
This video is well worth watching, pausing and rewinding as required. It's Bryan C. Mills "Rethinking Classical Concurrency Patterns": https://www.youtube.com/watch?v=5zXAHh5tJqQ It shows patterns which are tricky to implement correctly with condition variables and semaphores can be cleanly impl