# Integrate profiling into gpui \(\#8176\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/991c9ec441711a4c0b10ce595f3025f430123800)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 991c9ec441711a4c0b10ce595f3025f430123800

Requested commit: 991c9ec441711a4c0b10ce595f3025f430123800

Commit: 991c9ec441711a4c0b10ce595f3025f430123800

Tree: edfc0e25e31a75bd985a52360fa8ea29a49c144c

Author: Dzmitry Malyshau

Committer: GitHub

## Message

````
Integrate profiling into gpui (#8176)

[Profiling](https://crates.io/crates/profiling) crate allows easy
integration with various profiler tools. The best thing is - annotations
compile to nothing unless you request a specific feature.

For example, I used this command to enable Tracy support:
```bash
cargo run --features profiling/profile-with-tracy
```
At the same time I had Tracy tool open and waiting for connection. It
gathered nice stats from the run:

![zed-profiler](https://github.com/zed-industries/zed/assets/107301/5233045d-078c-4ad8-8b00-7ae55cf94ebb)


Release Notes:
- N/A
````

## Parents

- [250df707bf95c2370887e1d35e00073477c1da30](https://git.cafe/gitcafe/zed/commit/250df707bf95c2370887e1d35e00073477c1da30?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/991c9ec441711a4c0b10ce595f3025f430123800?format=markdown)
