Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheDir ¶
GetCacheDir returns the XDG cache directory for term-llm. Uses $XDG_CACHE_HOME if set, otherwise ~/.cache
func IsServerRunning ¶
IsServerRunning checks if a pprof server appears to be running. It checks if the port file exists and the port is reachable.
func PrintUsage ¶
PrintUsage prints helpful pprof commands to the given writer.
func ReadPortFile ¶
ReadPortFile reads the port from the registry file. Returns the port, or an error if the file doesn't exist or is invalid.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps the net/http/pprof server for runtime profiling.
Click to show internal directories.
Click to hide internal directories.