Skip to content

Commit

Permalink
Fix test, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-at-luther committed Jan 3, 2024
1 parent 9f13612 commit 21e961a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lisp/x/profiler/go_annotator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lisp/x/profiler/profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 21e961a

Please sign in to comment.