Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated README for sample size

Added paragraph about specifying the sample size in the configuration
  • Loading branch information...
commit e04a16472ab730b507f7b9a0dd90d1ed340aa4f9 1 parent 8612bcd
Baldur Rensch baldurrensch authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 README.md
7 README.md
Source Rendered
@@ -81,6 +81,13 @@ defining the following settings in your config. The config is usually located at
81 81
82 82 If you only have one entity manager defined, you don't need to set it here. This setting is for the case where you are using a seperate profiling database for XHGui (highly recommended).
83 83
  84 +### Specifying a Sample Size
  85 +
  86 +You can specify a sample size for profiling. This is highly suggested for production environments that have plenty of requests. The sample size is set as a probability for profiling, so for example, if you set the sample size to 2, then on average, every second request will be profiled. Of course, in production you want to set it to a much higher value. Defaults to 1, so that every request will be profiled.
  87 +
  88 + jns_xhprof:
  89 + sample_size: 2
  90 +
84 91 [1]: http://mirror.facebook.net/facebook/xhprof/doc.html
85 92 [2]: http://www.macports.org/
86 93 [3]: https://github.com/preinheimer/xhprof

0 comments on commit e04a164

Please sign in to comment.
Something went wrong with that request. Please try again.