# gpui: Add tree example \(\#34942\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c2c2264a60abf65e8a5e14859d6b588e307142c2

Requested commit: c2c2264a60abf65e8a5e14859d6b588e307142c2

Commit: c2c2264a60abf65e8a5e14859d6b588e307142c2

Tree: a917861fa127fdbb7836fc9361237028c1ac7d45

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
gpui: Add tree example (#34942)

This commit adds an example with deep children hierarchy.
The depth of a tree can be tweaked with GPUI_TREE_DEPTH env variable.
With depth=100
<img width="301" height="330" alt="image"
src="https://github.com/user-attachments/assets/844cd285-c5f3-4410-a74e-981bf093ba2e"
/>
With this example, I can trigger a stack overflow at depth=633 (and
higher).


Release Notes:

- N/A
```

## Parents

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

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