directory
Version:
v0.0.0-...-e2b9e53
Opens a new window with list of versions in this module.
Published: Mar 24, 2020
License: BSD-3-Clause
Opens a new window with license information.
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
¶
|
|
|
|
|
|
splitpath
|
|
|
|
|
|
trie
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.