Documentation
¶
Overview ¶
Package ezpprof is a convenience wrapper over the runtime/pprof package.
This package helps to quickly introduce profiling to a piece of code without the mess of opening files and checking errors.
A typical use of this package looks like:
ezpprof.Start("myfile.pprof")
{... some complicated code ...}
ezpprof.Stop()
Or alternatively:
const profile = true
if profile {
ezpprof.Start("myfile.pprof")
defer ezpprof.Stop()
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Heap ¶
func Heap(file string)
Heap writes heap profile to the given file. Panics if an error occurs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.