Skip to content

Commit 9bf7f74

Browse files
author
Boris Nagaev
committed
profile.go: update function descriptions
1 parent ca2b5fa commit 9bf7f74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

profile/profile.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
memLock sync.Mutex
2424
)
2525

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
2727
// profiler is already running.
2828
func StartCPUProfile(profileDir, identifier string) error {
2929
// Lock the cpu profile lock so that only one profiler is running at a
@@ -46,7 +46,7 @@ func StartCPUProfile(profileDir, identifier string) error {
4646
return nil
4747
}
4848

49-
// stopCPUProfile stops cpu profiling.
49+
// StopCPUProfile stops cpu profiling.
5050
func StopCPUProfile() {
5151
cpuLock.Lock()
5252
if cpuActive {
@@ -56,7 +56,7 @@ func StopCPUProfile() {
5656
cpuLock.Unlock()
5757
}
5858

59-
// saveMemProfile saves the current memory structure of the program. An error
59+
// SaveMemProfile saves the current memory structure of the program. An error
6060
// will be returned if memory profiling is already in progress. Unlike for cpu
6161
// profiling, there is no 'stopMemProfile' call - everything happens at once.
6262
func SaveMemProfile(profileDir, identifier string) error {

0 commit comments

Comments
 (0)