Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rewrite ¶
Rewrite rewrites the sample held by the profilePath's profile from a runtime address to a static address.
func RewriteTestProfile ¶
func RewriteTestProfile() error
RewriteTestProfile rewrites the CPU profile generated during testing, making sure the profile corresponds to static addresses. The profile is located in the directory specified by the "test.outputdir" test flag and has the file name specified by the "test.cpuprofile" flag.
This function returns an error if the profile was not successfully rewritten.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.