Track and report Task::units to debug API

This commit is contained in:
Héctor Ramón Jiménez 2025-03-13 02:07:06 +01:00
parent 5f15522368
commit 121102e55b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 121 additions and 78 deletions

View file

@ -17,8 +17,8 @@ pub fn theme_changed(f: impl FnOnce() -> Option<theme::Palette>) {
internal::theme_changed(f);
}
pub fn commands_spawned(amount: usize) {
internal::commands_spawned(amount)
pub fn tasks_spawned(amount: usize) {
internal::tasks_spawned(amount)
}
pub fn subscriptions_tracked(amount: usize) {
@ -114,7 +114,7 @@ mod internal {
}
}
pub fn commands_spawned(amount: usize) {
pub fn tasks_spawned(amount: usize) {
BEACON.log(client::Event::CommandsSpawned(amount));
}
@ -215,7 +215,7 @@ mod internal {
pub fn theme_changed(_f: impl FnOnce() -> Option<theme::Palette>) {}
pub fn commands_spawned(_amount: usize) {}
pub fn tasks_spawned(_amount: usize) {}
pub fn subscriptions_tracked(_amount: usize) {}