Increase max concurrent request to 10

Improve wait analysis dump.

De-prioritize secondary schedules.

Don't log warning for application/json scripts

Change pretty log timer to display time from start.
This commit is contained in:
Karl Seguin
2025-08-05 16:20:00 +08:00
parent 9876d79680
commit c7484c69c0
7 changed files with 98 additions and 51 deletions

View File

@@ -320,22 +320,18 @@ fn timestamp() i64 {
return std.time.milliTimestamp();
}
var last_log: i64 = 0;
var first_log: i64 = 0;
fn elapsed() i64 {
const now = timestamp();
last_log_lock.lock();
const previous = last_log;
last_log = now;
last_log_lock.unlock();
defer last_log_lock.unlock();
if (previous == 0) {
return 0;
if (first_log == 0) {
first_log = now;
}
if (previous > now) {
return 0;
}
return now - previous;
return now - first_log;
}
const testing = @import("testing.zig");