fpprof

package module
v0.0.0-...-fc58038 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: BSD-2-Clause Imports: 13 Imported by: 1

README

fpprof

Package pprof serves via fasthttp

This package like net/http/pprof but for fasthttp package

Example:

package main

import (
        "fmt"
        "time"

        "github.com/t0pep0/fpprof"
        "github.com/valyala/fasthttp"
)

func Something() {
        i := uint64(0)
        for 0xFFFFFFFFFFFFFFF0 > i {
                i += 1
                time.Sleep(time.Duration(i))
        }
}

func main() {
        fmt.Println("start")
        fasthttp.ListenAndServe("localhost:6060", fpprof.Pprof)
        go Something()
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pprof

func Pprof(ctx *fasthttp.RequestCtx)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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