Skip to content

Commit cdc6884

Browse files
nikomatsakismark-i-m
authored andcommitted
say function, not fn
1 parent fb59bf5 commit cdc6884

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/profiling/with_perf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ The `'{do_mir_borrowck}'` argument is called the **matcher**. It
170170
specifies the test to be applied on the backtrace. In this case, the
171171
`{X}` indicates that there must be *some* function on the backtrace
172172
that meets the regular expression `X`. In this case, that regex is
173-
just the name of the fn we want (in fact, it's a subset of the name;
173+
just the name of the function we want (in fact, it's a subset of the name;
174174
the full name includes a bunch of other stuff, like the module
175175
path). In this mode, perf-focus just prints out the percentage of
176176
samples where `do_mir_borrowck` was on the stack: in this case, 29%.
@@ -208,8 +208,8 @@ Percentage : 0%
208208
```
209209

210210
Here we used the `..` operator to ask "how often do we have
211-
`do_mir_borrowck` on the stack and then, later, some fn whose name
212-
begins with `rusc::traits`?" (basically, code in that module). It
211+
`do_mir_borrowck` on the stack and then, later, some function whose
212+
name begins with `rusc::traits`?" (basically, code in that module). It
213213
turns out the answer is "almost never" — only 12 samples fit that
214214
description (if you ever see *no* samples, that often indicates your
215215
query is messed up).

0 commit comments

Comments
 (0)