xdebug

package
v0.0.0-...-f89cf20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 7 Imported by: 0

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

Overview

Package xdebug includes utility functions for debugging.

Index

Constants

View Source
const HTTPPrefixPProf = "/debug/pprof"

Variables

This section is empty.

Functions

func Debug

func Debug(a ...interface{})

func FDebug

func FDebug(w io.Writer, a ...interface{})

func HTTPPProf

func HTTPPProf(mux *http.ServeMux)

HTTPPProf mount pprof handler on http.ServerMux

func PProfHandlers

func PProfHandlers() map[string]http.Handler

PProfHandlers returns a map of pprof handlers keyed by the HTTP path.

func SDebug

func SDebug(a ...interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL