basic-app

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Go Profiling

Enable profile in code

# use http server for profile
import _ "net/http/pprof"

Install Analyze Tool and Depenencies

go get -u github.com/google/pprof

# Mac only
brew install graphviz

Analyze

go tool pprof  http://localhost:6060/debug/pprof/heap

Build docker image

docker build . -t afgo/basic-app:v0.0.2 -t afgo/basic-app:latest

Reference

Notes

Flat Vs Cumulative

Flat means only by this function, while cum (cumulative) means by this function and functions called down the stack.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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