Standard library / runtime/pprof
pprof.Profile.Name()
Return the name registered with the profile. Expected stdout: 'bytemind.resource\n'.
Formal Syntax & Structure
go syntaxgo
func (p *Profile) Name() stringReturn Value
string
Registered profile name.
Working Example
Example Snippetgo
package main
import ( "fmt" "runtime/pprof")
func main() { p := pprof.NewProfile("bytemind.resource"); fmt.Println(p.Name()) }