Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc44612

Browse filesBrowse files
committed
N16: Profiling
1 parent 8375a71 commit cc44612
Copy full SHA for cc44612

File tree

Expand file treeCollapse file tree

3 files changed

+26
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+26
-0
lines changed

‎content/posts/newsletter-016/index.md

Copy file name to clipboardExpand all lines: content/posts/newsletter-016/index.md
+26Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,32 @@ If needed, a section can be split into subsections with a "------" delimiter.
6767

6868
## Library & Tooling Updates
6969

70+
### [profiling]
71+
72+
This month, [profiling] was released on crates.io. This crate provides a very thin
73+
abstraction over instrumented profiling crates like `puffin`, `optick`, `tracy`, and
74+
`superluminal-perf`.
75+
76+
Mark up your code like this:
77+
78+
```rust
79+
#[profiling::function]
80+
fn some_function() {
81+
burn_time(5);
82+
83+
for i in 0..5 {
84+
profiling::scope!("Looped Operation");
85+
burn_time(1);
86+
}
87+
}
88+
```
89+
90+
And get visualizations like this (`optick` and `puffin` shown):
91+
92+
[![Screenshot of Optick Profiler](optick-small.png)](optick.jpeg)
93+
94+
[profiling]: https://crates.io/crates/profiling
95+
7096
## Popular Workgroup Issues in Github
7197

7298
<!-- Up to 10 links to interesting issues -->
141 KB
Loading
391 KB
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.