要做到这一点,我知道我会将上述代码夹在两个getrusage()调用之间,但我得到了一些意想不到的结果……#include <sys/resource.h>include <stdio.h>
struct rusage usage; int i, j, k = 0;
getrusageloop for more interesting results. *
/libexec/python/lib/pyspark.zip/pyspark/shuffle.py", line 64, in get_used_memoryAttributeError: 'module' object has no attribute 'getrusage'
at org.apache.spark.api