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

@ -1100,6 +1100,7 @@ fn update<P: Program, E: Executor>(
for message in messages.drain(..) {
let update_span = debug::update(&message);
let task = runtime.enter(|| program.update(message));
debug::tasks_spawned(task.units());
update_span.finish();
if let Some(stream) = runtime::task::into_stream(task) {