Draft time-travel debugging feature
This commit is contained in:
parent
388a419ed5
commit
d5d4479a53
20 changed files with 330 additions and 63 deletions
|
|
@ -1069,10 +1069,7 @@ fn update<P: Program, E: Executor>(
|
|||
P::Theme: theme::Base,
|
||||
{
|
||||
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) {
|
||||
runtime.run(stream);
|
||||
|
|
@ -1082,7 +1079,6 @@ fn update<P: Program, E: Executor>(
|
|||
let subscription = runtime.enter(|| program.subscription());
|
||||
let recipes = subscription::into_recipes(subscription.map(Action::Output));
|
||||
|
||||
debug::subscriptions_tracked(recipes.len());
|
||||
runtime.track(recipes);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue