Documentation
¶
Overview ¶
Package profiling assists in gathering CPU profiles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUProfileForDuration ¶
CPUProfileForDuration will start generating a CPU profile (via pprof) to the supplied file. The profiling will run for the supplied duration and then stop. Only one profile can be running at a time, if you attempt to start a profile while profiling is already running, an error will be returned.
func StartupProfile ¶
StartupProfile will create a CPU profile to the supplied name, it'll run until the Views LastApplied() results is >= an initial LastLogIndex result. You can use this to easily profile the startup/catchup phase of a view