Skip to content

Update tracy #2856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Update tracy #2856

wants to merge 5 commits into from

Conversation

kim
Copy link
Contributor

@kim kim commented Jun 12, 2025

Description of Changes

API and ABI breaking changes

Expected complexity level and risk

Testing

gefjon and others added 5 commits April 21, 2025 11:40
Perhaps it should be called `DatabaseLifecycleManager`?

This new object is responsible for tracking the lifecycle of a database,
and for cleaning up after the database exits.
In particular, it:

- Unregisters the `Host` from the containing `HostController`.
  This was previously handled by an ad-hoc on-panic callback closure.

- Aborts the database memory usage metrics reporter task.
  This was previously handled by a `Drop` method on `Host`.

- Disconnects all connected WebSocket clients.
  Previously, this didn't happen at all, as per issue 2630.

I've also added some commentary to the WebSocket actor loop.

Follow-up commits will add tests once I've consulted with the team
about how best to test this change.
…-disconnect-clients

This was a pretty painful merge commit.
I had to add `_catch_panic` variants of `run` and `asyncify`,
and resolve a lot of conflicts.

Conflicts:
	crates/client-api/src/routes/subscribe.rs
	crates/core/src/host/host_controller.rs
	crates/core/src/host/module_host.rs
A linux build system only exists for newer versions of the tracy
application, and that claims the protocol is incompatible with
`tracing-tracy` 0.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants