package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Apr 11, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
XDebug
一些调试工具。
Dump 美化输出
Gc 垃圾收集 http endpoint handler
type gc struct{}
func (gc) ServeHTTP(http.ResponseWriter, *http.Request) { ... }
PProf 性能调优
// 注册pprof handler 到 *http.ServeMux上面
func PProfHandlers(h *http.ServeMux)
Documentation
¶
Package xdebug includes utility functions for debugging.
GcHandler return gc handler
HTTPPProf mount pprof handler on http.ServerMux
PProfHandlers returns a map of pprof handlers keyed by the HTTP path.
PanicHandler return panic handler
Source Files
¶
Click to show internal directories.
Click to hide internal directories.