1000) { $threshold = 0.001; } $script = xhprof_generate_dot_script($data, $threshold, null, null, null, null); echo "Generating dot image\n"; $content = xhprof_generate_image_by_dot($script, 'svg'); echo 'Saving graph to ' . $name . '.svg', "\n"; file_put_contents('/code/' . $name . '.svg', $content); } }); } ); tideways_xhprof_enable(TIDEWAYS_XHPROF_FLAGS_MEMORY | TIDEWAYS_XHPROF_FLAGS_CPU);