
The runWithLimits function doesn't measure the actual memory usage of the child process; it always returns memory: 0. The previous C++ implementation used rusage to track memory consumption, which is a valuable metric for competitive programming. This is a feature regression. Consider implementing memory measurement, for example by wrapping the execution with a tool like /usr/bin/time -v on Linux and parsing its output.
Originally posted by @gemini-code-assist[bot] in #12 (comment)
The
runWithLimitsfunction doesn't measure the actual memory usage of the child process; it always returnsmemory: 0. The previous C++ implementation usedrusageto track memory consumption, which is a valuable metric for competitive programming. This is a feature regression. Consider implementing memory measurement, for example by wrapping the execution with a tool like/usr/bin/time -von Linux and parsing its output.Originally posted by @gemini-code-assist[bot] in #12 (comment)