mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
Add process diagnostics snapshots (#37434)
## What changed - Add a `codex-diagnostics` crate that snapshots the process ID, available resident-memory measurements, and registered process-wide gauges. - Provide guards that update gauges for the lifetime of measured objects. - Track live `CodexThread` instances with the `core.threads.live` gauge. ## Testing - Add unit coverage for gauge registration, guard lifetimes, process memory snapshots, and live-thread reporting. GitOrigin-RevId: 3236b086bd4ebe31ed4768ab87a5fa288b0891b0
This commit is contained in:
1 parent
51e36d2ec2
commit
a7dcd20d38
9 files changed
+317
No files matched your search
@@ -0,0 +1,6 @@
|
||||
load("//:defs.bzl", "codex_rust_crate")
|
||||
|
||||
codex_rust_crate(
|
||||
name = "diagnostics",
|
||||
crate_name = "codex_diagnostics",
|
||||
)
|
||||
Reference in new issue
Block a user