Track and report Task::units to debug API
This commit is contained in:
parent
5f15522368
commit
121102e55b
3 changed files with 121 additions and 78 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue