Zettelstore runtime profiling

For debugging purposes, you can enable runtime profiling by setting the startup configuration runtime-profiling. Typically, a Zettelstore developer will do this. In certain cases, a Zettelstore developer will ask you to enable runtime profiling, because you encountered a hard error.

Runtime profiling will generate some data that can be retrieved through the builtin web server. The following URL paths are valid:

PathDescription
/rtp/Show an index page, where you can navigate to detailed information
/rtp/allocsShow a sampling of all past memory allocations
/rtp/blockShow stack traces that led to internal blocking
/rtp/cmdlineShow the running Zettelstore command line, with arguments separated by NUL bytes
/rtp/goroutineShow stack traces of all current internal activities
/rtp/heapShow a sampling of memory allocations of live objects
/rtp/mutexShow stack traces of holders of contended mutexes
/rtp/profileExecute a CPU profile
/rtp/symbolShows function names for given program counter value
/rtp/traceShow trace of execution of the current program
/rtp/threadcreateShow stack traces that led to the creation of new OS threads

See documentation for Go standard package net/http/pprof.