mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
more docs
This commit is contained in:
parent
57da951004
commit
7c74cba839
1 changed files with 9 additions and 0 deletions
|
|
@ -4,9 +4,18 @@
|
|||
|
||||
This crate is part of the [gitui](http://gitui.org) project and can be used to annotate arbitrary scopes to `trace` their execution times via `log`:
|
||||
|
||||
in your crate:
|
||||
```
|
||||
[dependencies]
|
||||
scopetime = "0.1"
|
||||
```
|
||||
|
||||
in your code:
|
||||
```rust
|
||||
fn foo(){
|
||||
scope_time!("foo");
|
||||
|
||||
// ... do something u wanna measure
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue