Skip to content

base: add process memory metrics#11

Merged
Force67 merged 3 commits into
devel5from
feature/process-memory-metrics
Jul 15, 2026
Merged

base: add process memory metrics#11
Force67 merged 3 commits into
devel5from
feature/process-memory-metrics

Conversation

@Force67

@Force67 Force67 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • add an exported ProcessHandle and resident/peak memory query under base/process using mem_size and reference output
  • support both current and external processes through Linux/Android pids, macOS Mach task ports, and Windows process handles
  • wire PSAPI and consistent macOS platform defines into CMake/premake, including case-correct MinGW headers/libraries
  • test current, invalid, and controlled external-process queries

Testing

  • cmake -S . -B /tmp/opencode/equilibrium-process-memory-build -DEQ_BUILD_TESTS=ON
  • cmake --build /tmp/opencode/equilibrium-process-memory-build --parallel 8
  • /tmp/opencode/equilibrium-process-memory-build/base_unittests --gtest_filter=ProcessMetricsTest.* (3/3 passed)
  • x86_64-w64-mingw32-g++ -std=c++23 -DBASE_IMPLEMENTATION -DOS_WIN -I. -Ibase -shared base/process/process_metrics_win.cc -lpsapi -o /tmp/opencode/process_metrics_win.dll
  • full CTest passes all affected tests; the existing FunctionRef.CanInitializeWithCapturingLambda baseline test still fails

@Force67 Force67 changed the title base: add current process memory metrics base: add process memory metrics Jul 15, 2026
@Force67
Force67 merged commit 8164361 into devel5 Jul 15, 2026
0 of 4 checks passed
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.

1 participant