--TEST-- Bug https://github.com/scoutapp/scout-apm-php-ext/issues/88 - memory usage should not increase when no instrumentation happens --SKIPIF-- --FILE-- b(); } $after = (int) (exec("ps --pid " . getmypid() . " --no-headers -o rss")); echo "Before & after:\n"; var_dump($before, $after); echo "Difference:\n"; var_dump($after - $before); $threshold = 500; // bytes echo "Within $threshold bytes limit:\n"; var_dump(($after - $before) < $threshold); ?> --EXPECTF-- Before & after: int(%d) int(%d) Difference: int(%d) Within %d bytes limit: bool(true)