Add some more VibeTaskLog logging.
This commit is contained in:
parent
e018e161e7
commit
ba6c058148
|
@ -1369,6 +1369,8 @@ private void setupGcTimer()
|
||||||
|
|
||||||
package(vibe) void performIdleProcessing(bool force_process_events = false)
|
package(vibe) void performIdleProcessing(bool force_process_events = false)
|
||||||
@safe nothrow {
|
@safe nothrow {
|
||||||
|
debug (VibeTaskLog) logTrace("Performing idle processing...");
|
||||||
|
|
||||||
bool again = !getExitFlag();
|
bool again = !getExitFlag();
|
||||||
while (again) {
|
while (again) {
|
||||||
again = performIdleProcessingOnce(force_process_events);
|
again = performIdleProcessingOnce(force_process_events);
|
||||||
|
|
|
@ -829,7 +829,7 @@ package struct TaskScheduler {
|
||||||
|
|
||||||
debug (VibeTaskLog) logTrace("Processing pending events...");
|
debug (VibeTaskLog) logTrace("Processing pending events...");
|
||||||
ExitReason er = eventDriver.core.processEvents(0.seconds);
|
ExitReason er = eventDriver.core.processEvents(0.seconds);
|
||||||
debug (VibeTaskLog) logTrace("Done.");
|
debug (VibeTaskLog) logTrace("Done: %s", er);
|
||||||
|
|
||||||
final switch (er) {
|
final switch (er) {
|
||||||
case ExitReason.exited: return ExitReason.exited;
|
case ExitReason.exited: return ExitReason.exited;
|
||||||
|
@ -878,7 +878,7 @@ package struct TaskScheduler {
|
||||||
// process one chunk
|
// process one chunk
|
||||||
debug (VibeTaskLog) logTrace("Wait for new events to process...");
|
debug (VibeTaskLog) logTrace("Wait for new events to process...");
|
||||||
er = eventDriver.core.processEvents(Duration.max);
|
er = eventDriver.core.processEvents(Duration.max);
|
||||||
debug (VibeTaskLog) logTrace("Done.");
|
debug (VibeTaskLog) logTrace("Done: %s", er);
|
||||||
final switch (er) {
|
final switch (er) {
|
||||||
case ExitReason.exited: return ExitReason.exited;
|
case ExitReason.exited: return ExitReason.exited;
|
||||||
case ExitReason.outOfWaiters:
|
case ExitReason.outOfWaiters:
|
||||||
|
|
Loading…
Reference in a new issue