diff --git a/lisp/x/profiler/go_annotator_test.go b/lisp/x/profiler/go_annotator_test.go index 9cd967b..43d6ce3 100644 --- a/lisp/x/profiler/go_annotator_test.go +++ b/lisp/x/profiler/go_annotator_test.go @@ -28,7 +28,7 @@ func TestNewPprofAnnotator(t *testing.T) { t.Fatal(lisp.GoError(lerr)) } // Some spurious functions to check we get a profile out - testsrc := env.LoadString("test.lisp", longTestLisp) + testsrc := env.LoadString("longtest.lisp", longTestLisp) lerr = env.Eval(testsrc) assert.NotEqual(t, lisp.LError, lerr.Type, lerr.Str) // Mark the profile as complete and dump the rest of the profile diff --git a/lisp/x/profiler/profiler.go b/lisp/x/profiler/profiler.go index 3de5887..061e64d 100644 --- a/lisp/x/profiler/profiler.go +++ b/lisp/x/profiler/profiler.go @@ -47,7 +47,7 @@ func (p *profiler) skipTrace(v *lisp.LVal) bool { var builtinRegex = regexp.MustCompile("\\<(?:builtin|special)-[a-z]+ \\`\\`(.*)\\'\\'\\>") -// Gets a canonical version of the function name suitable for viewing in KCacheGrind +// Gets a canonical version of the function name suitable for human viewing. func getFunNameFromFID(rt *lisp.Runtime, in string) string { // Most of the time we can just look this up in FunNames if name, ok := rt.Package.FunNames[in]; ok {