Open Ishan-Batra opened 1 year ago
The following code:
date_default_timezoneset('Asia/Kolkata'); $filename = "/app/storage/logs/profile".date('d-m-Y_H:i').".heap"; $file = fopen($filename, 'w'); memprof_dump_pprof($file);
Using MEMPROF_PROFILE=1 in env varibale
Resulted in this output: File is getting created but container is getting restarted for every requerst , we configured for every http request hit we dump the profile
But I expected this output instead: Without restart file dump need to be created
3.0.2
PHP 8.1.0
alpine 3.10
Description
The following code:
date_default_timezoneset('Asia/Kolkata'); $filename = "/app/storage/logs/profile".date('d-m-Y_H:i').".heap"; $file = fopen($filename, 'w'); memprof_dump_pprof($file);
Using MEMPROF_PROFILE=1 in env varibale
Resulted in this output: File is getting created but container is getting restarted for every requerst , we configured for every http request hit we dump the profile
But I expected this output instead: Without restart file dump need to be created
php-memprof Version
3.0.2
PHP Version
PHP 8.1.0
Operating System
alpine 3.10