£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyʦ•ꎅȮFÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~芩ÊǍí`ÔÑ©ú뙵'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶êםӼ㞪éUWŸÈË%DÒÕ¬ï‘]/Åcx ‰ï2ß]ä6G[]S£Ôϯrs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ ¯¹ægƒÛowЍø^d™ý½ßB7áyMä9ÜÖUã !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --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)