Skip to content

Commit c745b17

Browse files
committed
N20: Add WhatTheFrame
1 parent bcc6b9d commit c745b17

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

content/posts/newsletter-020/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,30 @@ _Discussions: [/r/rust_gamedev](https://www.reddit.com/r/rust_gamedev/comments/m
135135
[@wumpf]: https://github.com/Wumpf
136136
[graphics team blog]: https://mozillagfx.wordpress.com/2021/03/10/webgpu-progress/
137137

138+
### [WhatTheFrame]
139+
140+
![whattheframe gui](whattheframe.png)
141+
142+
[WhatTheFrame] by [@JMS55]
143+
is a frame-based cpu profiler crate along with a [GTK] ([gtk4-rs]) based GUI.
144+
145+
This project aims to answer the question: Which frames of my game are slow, and why?
146+
147+
It aims to be simple to use, consisting of only 3 functions: Call `let _r = Profiler::new_frame()`
148+
at the start of each frame, `let _r = Profiler::new_task("task_name")` whenever you want to profile
149+
a task, and finally `Profiler::end_profiling()` once at the end.
150+
151+
You can then open the resulting `.wtf` profile in the GUI and analyze the results.
152+
153+
This month was spent designing and implementing both the GUI and profiler crate.
154+
The core functionality of both programs are complete, and all that remains is
155+
cleanup, tweaks, optimization, and finally packaging the GUI up.
156+
157+
[WhatTheFrame]: https://github.com/JMS55/whattheframe
158+
[@JMS55]: https://github.com/JMS55
159+
[GTK]: https://gtk.org/
160+
[gtk4-rs]: https://github.com/gtk-rs/gtk4-rs#gtk4-rs-
161+
138162
## Popular Workgroup Issues in Github
139163

140164
<!-- Up to 10 links to interesting issues -->
50.9 KB
Loading

0 commit comments

Comments
 (0)