Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically clearing tmp files in webgrind

I use webgrind, and it produces large amounts of cache files.

How do i automatically clear those files after the server closes or something like that. I use WAMP installation on a windows7 machine.

It may sound silly, But i am not sure how to disable webgrind temporarily on wamp. Also does webgrind add considerable overhead while executing scripts?

PS: webgrind is used interchangble with xdebug in the above statements.

like image 352
footy Avatar asked Jul 31 '11 16:07

footy


1 Answers

Yes, xdebug profiling adds some overhead to execution.

In your php.ini (or xdebug.ini) file, set:

xdebug.profiler_enable=0

xdebug.profiler_enable_trigger=1

Now cachegrind files will only be generated when you GET/POST with a parameter, or send a cookie, with the name XDEBUG_PROFILE.

Example: http://yoursite.com/yourscript.php?XDEBUG_PROFILE=1

Reference: http://www.xdebug.org/docs/profiler

like image 86
mh. Avatar answered Oct 02 '22 00:10

mh.