# Log worst hanging tasks and actions \(\#57835\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 39f7849a0fedc52def5ba8763344245f2a543532

Requested commit: 39f7849a0fedc52def5ba8763344245f2a543532

Commit: 39f7849a0fedc52def5ba8763344245f2a543532

Tree: f9891d693a0ba267fa3f50e0452035be66a9ee82

Author: Yara 🏳️‍⚧️

Committer: GitHub

## Message

```
Log worst hanging tasks and actions (#57835)

We have a lot of long blocking tasks on both the foreground and
background, this is a start of getting some insight into those.

We will now log tasks running longer then 100ms on the foreground or
background. Hanging actions will also be logged including their name. We
simultaneously collect statistics on task and action performance and
send those to telemetry. This includes quantiles and averages for each
hanging task.

Finally this adds tree dev actions: 
- hang action
- hang foreground
- hang background

These cause a hang to check if hang reporting is working and in the
future telemetry.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- Added logging and telemetry of tasks and actions with performance
issues
```

## Parents

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

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