Skip to content

Complete runtime metrics tracing#436

Merged
heartwilltell merged 1 commit into
mainfrom
codex/runtime-metrics
Apr 26, 2026
Merged

Complete runtime metrics tracing#436
heartwilltell merged 1 commit into
mainfrom
codex/runtime-metrics

Conversation

@heartwilltell

Copy link
Copy Markdown
Contributor

Summary

  • extend run_metrics_t with queue, live-G, and poll-waiter snapshot gauges
  • derive gauge values from existing scheduler queues and live_g_count state
  • enrich RUN_TRACE=1 JSON events with queue, poller, G, and P context

Fixes #410

Test Plan

  • clang-format -i src/runtime/run_scheduler.c src/runtime/run_scheduler.h src/runtime/tests/test_scheduler.c
  • zig build
  • zig build test (passes with expected bad_check.run missing() negative diagnostic)
  • zig build test-runtime
  • RUN_TRACE=1 zig build test-runtime

@heartwilltell heartwilltell marked this pull request as ready for review April 26, 2026 21:11
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 26, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
runlang 70c1525 Commit Preview URL

Branch Preview URL
Apr 26 2026, 09:13 PM

@heartwilltell heartwilltell self-assigned this Apr 26, 2026
@heartwilltell heartwilltell force-pushed the codex/runtime-metrics branch from 70c1525 to e763e3c Compare April 26, 2026 21:18
@heartwilltell heartwilltell merged commit d262708 into main Apr 26, 2026
14 checks passed
@heartwilltell heartwilltell deleted the codex/runtime-metrics branch April 26, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add runtime metrics and tracing infrastructure

1 participant