How do I save a dump of Kite's memory usage profile?

To get a dump of Kite's memory usage, run the following command:

curl http://localhost:46624/debug/pprof/heap?debug=1 | gzip > /path/to/kite_mem.gz

The resulting kite_mem.gz file will contain a snapshot of Kite's memory usage. It may be useful to include this file when submitting a support request.