gitea: Index | Files

package pprof

import ""


Package Files


func DumpCPUProfileForUsername Uses

func DumpCPUProfileForUsername(pprofDataPath, username string) (func(), error)

DumpCPUProfileForUsername dumps a CPU profile at pprofDataPath as cpuprofile_<username>_<temporary id>

it returns the stop function which stops, writes and closes the CPU profile file

func DumpMemProfileForUsername Uses

func DumpMemProfileForUsername(pprofDataPath, username string) error

DumpMemProfileForUsername dumps a memory profile at pprofDataPath as memprofile_<username>_<temporary id>

Package pprof imports 5 packages (graph) and is imported by 3 packages. Updated 2019-06-24. Refresh now. Tools for package owners.