File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
memLock sync.Mutex
24
24
)
25
25
26
- // startCPUProfile starts cpu profiling. An error will be returned if a cpu
26
+ // StartCPUProfile starts cpu profiling. An error will be returned if a cpu
27
27
// profiler is already running.
28
28
func StartCPUProfile (profileDir , identifier string ) error {
29
29
// Lock the cpu profile lock so that only one profiler is running at a
@@ -46,7 +46,7 @@ func StartCPUProfile(profileDir, identifier string) error {
46
46
return nil
47
47
}
48
48
49
- // stopCPUProfile stops cpu profiling.
49
+ // StopCPUProfile stops cpu profiling.
50
50
func StopCPUProfile () {
51
51
cpuLock .Lock ()
52
52
if cpuActive {
@@ -56,7 +56,7 @@ func StopCPUProfile() {
56
56
cpuLock .Unlock ()
57
57
}
58
58
59
- // saveMemProfile saves the current memory structure of the program. An error
59
+ // SaveMemProfile saves the current memory structure of the program. An error
60
60
// will be returned if memory profiling is already in progress. Unlike for cpu
61
61
// profiling, there is no 'stopMemProfile' call - everything happens at once.
62
62
func SaveMemProfile (profileDir , identifier string ) error {
You can’t perform that action at this time.
0 commit comments