Improve debug trace logging.
This commit is contained in:
parent
a44d3f2655
commit
3d1be3b3cb
|
@ -428,6 +428,7 @@ package Task runTask_internal(alias TFI_SETUP)()
|
|||
() @trusted { TaskFiber.ms_taskEventCallback(TaskEvent.preStart, handle); } ();
|
||||
}
|
||||
|
||||
debug (VibeTaskLog) logTrace("Switching to newly created task");
|
||||
switchToTask(handle);
|
||||
|
||||
debug if (TaskFiber.ms_taskEventCallback) {
|
||||
|
|
|
@ -823,6 +823,7 @@ package struct TaskScheduler {
|
|||
|
||||
bool any_events = false;
|
||||
while (true) {
|
||||
debug (VibeTaskLog) logTrace("Scheduling before peeking new events...");
|
||||
// process pending tasks
|
||||
bool any_tasks_processed = schedule() != ScheduleStatus.idle;
|
||||
|
||||
|
@ -952,7 +953,7 @@ package struct TaskScheduler {
|
|||
auto thistf = () @trusted { return thist.taskFiber; } ();
|
||||
assert(!thistf || !thistf.m_queue, "Calling task is running, but scheduled to be resumed!?");
|
||||
|
||||
debug (VibeTaskLog) logDebugV("Switching tasks (%s already in queue)", m_taskQueue.length);
|
||||
debug (VibeTaskLog) logDebugV("Switching tasks (%s already in queue, prio=%s)", m_taskQueue.length, priority);
|
||||
final switch (priority) {
|
||||
case TaskSwitchPriority.normal:
|
||||
reschedule(tf);
|
||||
|
|
Loading…
Reference in a new issue