1go tool pprof http://localhost:6060/debug/pprof/heap
2Fetching profile over HTTP from http://localhost:6060/debug/pprof/heap
3Saved profile in /home/erock/pprof/pprof.ssh.alloc_objects.alloc_space.inuse_objects.inuse_space.010.pb.gz
4File: ssh
5Build ID: b8d9b26129cf70329eb2d7b8d3a8b402a6baf38b
6Type: inuse_space
7Time: Jul 6, 2024 at 11:52pm (EDT)
8Entering interactive mode (type "help" for commands, "o" for options)
9(pprof) top
10Showing nodes accounting for 549.68MB, 98.75% of 556.61MB total
11Dropped 42 nodes (cum <= 2.78MB)
12Showing top 10 nodes out of 26
13 flat flat% sum% cum cum%
14 528MB 94.86% 94.86% 528.50MB 94.95% github.com/minio/minio-go/v7.(*Client).putObjectMultipartStreamNoLength
15 21.68MB 3.89% 98.75% 21.68MB 3.89% bytes.growSlice
16 0 0% 98.75% 21.68MB 3.89% bytes.(*Buffer).Write
17 0 0% 98.75% 21.68MB 3.89% bytes.(*Buffer).grow
18 0 0% 98.75% 550.18MB 98.84% github.com/antoniomika/go-rsync-receiver/rsyncreceiver.(*recvTransfer).receiveData
19 0 0% 98.75% 550.18MB 98.84% github.com/antoniomika/go-rsync-receiver/rsyncreceiver.(*recvTransfer).recvFile1 (inline)
20 0 0% 98.75% 550.18MB 98.84% github.com/antoniomika/go-rsync-receiver/rsyncreceiver.(*recvTransfer).recvFiles
21 0 0% 98.75% 550.68MB 98.93% github.com/antoniomika/go-rsync-receiver/rsyncreceiver.ClientRun
22 0 0% 98.75% 550.68MB 98.93% github.com/charmbracelet/promwish.MiddlewareRegistry.func1.1
23 0 0% 98.75% 550.68MB 98.93% github.com/charmbracelet/ssh.(*session).handleRequests.func1