diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-09-07 10:55:46 -0400 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2018-09-10 19:25:29 -0500 |
| commit | 9c3d2ab8e79881236dc5ccf7a6b15d70786b8d08 (patch) | |
| tree | 8053390e306b19fc303cdb8a21454baf9e27e28e /src/doc/rustc-dev-guide | |
| parent | 3b833916f794ad20e57f2bd95546d309d0a96913 (diff) | |
| download | rust-9c3d2ab8e79881236dc5ccf7a6b15d70786b8d08.tar.gz rust-9c3d2ab8e79881236dc5ccf7a6b15d70786b8d08.zip | |
say function, not fn
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/profiling/with_perf.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/profiling/with_perf.md b/src/doc/rustc-dev-guide/src/profiling/with_perf.md index 61720c3b4cc..f0f6aada96c 100644 --- a/src/doc/rustc-dev-guide/src/profiling/with_perf.md +++ b/src/doc/rustc-dev-guide/src/profiling/with_perf.md @@ -170,7 +170,7 @@ The `'{do_mir_borrowck}'` argument is called the **matcher**. It specifies the test to be applied on the backtrace. In this case, the `{X}` indicates that there must be *some* function on the backtrace that meets the regular expression `X`. In this case, that regex is -just the name of the fn we want (in fact, it's a subset of the name; +just the name of the function we want (in fact, it's a subset of the name; the full name includes a bunch of other stuff, like the module path). In this mode, perf-focus just prints out the percentage of samples where `do_mir_borrowck` was on the stack: in this case, 29%. @@ -208,8 +208,8 @@ Percentage : 0% ``` Here we used the `..` operator to ask "how often do we have -`do_mir_borrowck` on the stack and then, later, some fn whose name -begins with `rusc::traits`?" (basically, code in that module). It +`do_mir_borrowck` on the stack and then, later, some function whose +name begins with `rusc::traits`?" (basically, code in that module). It turns out the answer is "almost never" — only 12 samples fit that description (if you ever see *no* samples, that often indicates your query is messed up). |
