xdebug

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 4 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

This section is empty.

Variables

This section is empty.

Functions

func GcHandler

func GcHandler() http.Handler

GcHandler return gc handler

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 PanicHandler

func PanicHandler() http.Handler

PanicHandler return panic handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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