We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96b4532 + 86fc9b1 commit 558343fCopy full SHA for 558343f
rust/README.md
@@ -43,14 +43,12 @@ If you'd like to profile the latency of an operation you can instead use:
43
```rust
44
// Boy I wish this function executed more quickly...
45
fn foo() {
46
- coz::begin!("foo");
47
-
48
- // ...
49
50
- coz::end!("foo");
+ coz::scope!("foo");
51
}
52
```
53
+Instead of `scope!` you may also use `coz::begin!("foo"); ... coz::end!("foo");`.
+
54
After you've instrumented your code, you need to also ensure that you're
55
compiling with DWARF debug information. To do this you'll want to configure
56
`Cargo.toml` again:
0 commit comments