You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set the env var MEMPROF_PROFILE=dump_on_limit then profiler is enabled for every request, which slows down the whole site of course and which I'm trying to avoid.
What I'm hopping to achieve is heaving profiler do its job only if request variable is set and sit idly otherwise. As I understood the documentation this should be achievable but maybe I just didn't understand it correctly. :)
php-memprof Version
3.0.2
PHP Version
7.4.33
Operating System
Debian 11
The text was updated successfully, but these errors were encountered:
Description
The following code:
Resulted in this output (when calling
/above_script.php?MEMPROF_PROFILE=dump_on_limit
):But I expected this output instead:
I'm using Docker container based on this Dockerfile: https://github.com/bitnami/containers/blob/459433741bd9d98d8e8eee698db1ee8a21776c86/bitnami/php-fpm/7.4/debian-11/Dockerfile
My actual Docker image uses this Dockerfile where I changed the base one slightly so that I could install the memprof.so:
If I set the
env var MEMPROF_PROFILE=dump_on_limit
then profiler is enabled for every request, which slows down the whole site of course and which I'm trying to avoid.What I'm hopping to achieve is heaving profiler do its job only if request variable is set and sit idly otherwise. As I understood the documentation this should be achievable but maybe I just didn't understand it correctly. :)
php-memprof Version
3.0.2
PHP Version
7.4.33
Operating System
Debian 11
The text was updated successfully, but these errors were encountered: