You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you help me understand why this indicates a memory leak and not just memory usage? What I understand of pprof/heap is that it's a snapshot of the memory usage on the heap at a specific time, but it may be released just a moment after. Is this called after Close was called? A code example and the the timing of the heap profile creation could help.
Some context: ensureFrameStartsAndLength is called when a new Decoder is made. At that point the whole MP3 is scanned through to make a seektable. This is needed for seeking because MP3 doesn't have a seektable embedded in the file itself. So it does a bit of work upfront but those bytes shouldn't stick around for long.
Hi y'all,
I recently started learning Go, and I wanted to build a small local music player.
Long story short, after running
pprof
on my program, I get this when I run it on /pprof/heap:(Hopefully) I am closing any
beep.StreamSeekCloser
, but of course I could be wrong. If needed, I'd be happy to attach any relevant code.The text was updated successfully, but these errors were encountered: