diff --git a/lisp/profiler.go b/lisp/profiler.go index 518a70c..cf0560d 100644 --- a/lisp/profiler.go +++ b/lisp/profiler.go @@ -12,6 +12,6 @@ type Profiler interface { SetFile(filename string) error // Complete ends the profiling session and output summary lines Complete() error - // Start the start of a process, and returns a function to stop. + // Start the process, and returns a function to stop. Start(function *LVal) func() } diff --git a/lisp/x/profiler/callgrind.go b/lisp/x/profiler/callgrind.go index 68bcbb8..4e34cff 100644 --- a/lisp/x/profiler/callgrind.go +++ b/lisp/x/profiler/callgrind.go @@ -144,7 +144,7 @@ func (p *callgrindProfiler) Start(function *lisp.LVal) func() { } return func() { - p.End(function) + p.end(function) } } @@ -202,7 +202,7 @@ func (p *callgrindProfiler) getFunctionParameters(function *lisp.LVal) (string, return source, line, fName } -func (p *callgrindProfiler) End(function *lisp.LVal) { +func (p *callgrindProfiler) end(function *lisp.LVal) { if !p.enabled { return }