Skip to content
Snippets Groups Projects
Commit 51e7f726 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Change profiler output in order to work with webgind

parent 77775d0b
No related branches found
No related tags found
No related merge requests found
......@@ -5,5 +5,6 @@ default['xdebug']['directives'] = {
:max_nesting_level => 1500,
:mode => 'debug',
:remote_handler => 'dbgp',
:start_with_request => 'default'
:start_with_request => 'default',
:profiler_output_name => 'cachegrind.out.%p.webgrind'
}
......@@ -4,6 +4,11 @@
;zend_extension = <%= Mixlib::ShellOut.new("php -i | grep extension_dir | awk 'NR==1 {print $(NF)}'").run_command.stdout.strip %>/xdebug.so
zend_extension=xdebug.so
; to activate the profiler: Change the variable "xdebug.mode" to "profile" instead of "debug" and use "xdebug.start_with_request" with "trigger"
<% node['xdebug']['directives'].sort_by { |key, val| key }.each do |directive, value| -%>
<%= "xdebug.#{directive} = #{value}" %>
<% end -%>
; -----------------------------------------------------------------------------
; xdebug.auto_trace
;
......@@ -1019,8 +1024,4 @@ zend_extension=xdebug.so
; send to the client through the Remote Debugging feature.
;
;
;xdebug.var_display_max_depth = 3
<% node['xdebug']['directives'].sort_by { |key, val| key }.each do |directive, value| -%>
<%= "xdebug.#{directive} = #{value}" %>
<% end -%>
;xdebug.var_display_max_depth = 3
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment