# Plans in the local:exec runner operate in the default namespace.
# the first plan will grab port 6060 and the any additional will listen
# look for the following messages in the test run output to figure out
# the URL where to access the pprof endpoint of each instance:
# May 6 14:32:10.146239 INFO 0.0174s MESSAGE << instance 1 >>
# registering default http handler at: http://[::]:6060/
# (pprof: http://[::]:6060/debug/pprof/)
# May 6 14:32:10.146535 INFO 0.0179s MESSAGE << instance 2 >>
# registering default http handler at: http://[::]:64912/
# (pprof: http://[::]:64912/debug/pprof/)
$ echo "top" | go tool pprof http://localhost:6060/debug/pprof/heap
Fetching profile over HTTP from http://localhost:6060/debug/pprof/heap
top: open top: no such file or directory
Fetched 1 source profiles out of 2
Saved profile in /home/cory/pprof/pprof.exec-go--planbuggy-ba70706f7cd1.alloc_objects.alloc_space.inuse_objects.inuse_space.003.pb.gz
File: exec-go--planbuggy-ba70706f7cd1
Time: May 5, 2020 at 1:05am (PDT)
Entering interactive mode (type "help" for commands, "o" for options)
(pprof) Showing nodes accounting for 544.67kB, 100% of 544.67kB total
544.67kB 100% 100% 544.67kB 100% net.open
0 0% 100% 544.67kB 100% internal/singleflight.(*Group).doCall
0 0% 100% 544.67kB 100% net.(*Resolver).goLookupIPCNAMEOrder
0 0% 100% 544.67kB 100% net.(*Resolver).lookupIP
0 0% 100% 544.67kB 100% net.(*Resolver).lookupIPAddr.func1
0 0% 100% 544.67kB 100% net.glob..func1
0 0% 100% 544.67kB 100% net.goLookupIPFiles
0 0% 100% 544.67kB 100% net.lookupStaticHost
0 0% 100% 544.67kB 100% net.readHosts