profile-violetear/

directory
v0.0.0-...-e2b9e53 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: BSD-3-Clause

README

Identify allocations

When setting allocfreetrace=1 to environment variable GODEBUG, you can see stacktrace where allocation occures:

allocfreetrace: setting allocfreetrace=1 causes every allocation to be
profiled and a stack trace printed on each object's allocation and free.

Build test:

go test -c

Run bench:

GODEBUG=allocfreetrace=1 ./test.test -test.run=none -test.bench=BenchmarkRouter -test.benchtime=10ms 2>trace.log

https://methane.github.io/2015/02/reduce-allocation-in-go-code/

Directories

Path Synopsis
splitpath
trie
map

Jump to

Keyboard shortcuts

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