ghttppprof

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 7 Imported by: 1

README

gpprof 包

简介

gpprof 包提供了性能分析(pprof)工具的便捷封装。

功能特性

  • CPU 分析:CPU 性能分析
  • 内存分析:内存使用分析
  • 便捷启动:简化 pprof 服务启动

安装

go get github.com/snail007/gmc/util/pprof

快速开始

package main

import (
    "github.com/snail007/gmc/util/pprof"
)

func main() {
    // 启动 pprof HTTP 服务
    gpprof.Start(":6060")
    
    // 访问 http://localhost:6060/debug/pprof/
}

相关链接

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindRouter

func BindRouter(r gcore.HTTPRouter, prefix string, checker ...checkerFunc)

Types

This section is empty.

Jump to

Keyboard shortcuts

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