php - Is it possible to use the MVC path in XDebugs profiler outout filename? -


i using xdebug profile large mvc application , easier profile individual requests uri rather filename (.php) several requests made via internal functions, resulting in multiple grind files single page refresh.

i have seen %p = process id, %t = timestamp , %s = script name ( var_path_to_example.php )

it easier if file named more grind.{domain}{path}.%p

is possible? havent been able find other string formatting replacers may im after.

single page refresh creates 4 grind files ( 3 index, 1 main request, other 2 media compressors ) , 1 img.php media path rewriter , resizer.

all of combined single www.example.com/path/to/controller.grind preferable situation.

the answer use %r - found list of string replacements here xdebug settings under trace_output_name section. seems same replacers can used profiler output names well.

name files in php.ini - "cachegrind.out.%r" uri name slashes replaced underscores.

now grind files cachegrind.out._page_minify_css , cachegrind.out._ ( root of domain - looking in order tie profiles requests )

the short list this

%c = crc32 of cwd

%p = pid

%r = random number

%s = script name ( profile output )

%t = timestamp ( seconds )

%u = timestamp ( microseconds )

%h = hostname

%r = request uri ( 1 after )

%u = unique id /9 since 2.2 )

%s = session id


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -