|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Functions | |
| xhprof_http_header ($name, $value) | |
| xhprof_generate_mime_header ($type, $length) | |
| xhprof_generate_image_by_dot ($dot_script, $type) | |
| xhprof_get_children_table ($raw_data) | |
| xhprof_generate_dot_script ($raw_data, $threshold, $source, $page, $func, $critical_path, $right=null, $left=null) | |
| xhprof_render_diff_image ($xhprof_runs_impl, $run1, $run2, $type, $threshold, $source) | |
| xhprof_get_content_by_run ($xhprof_runs_impl, $run_id, $type, $threshold, $func, $source, $critical_path) | |
| xhprof_render_image ($xhprof_runs_impl, $run_id, $type, $threshold, $func, $source, $critical_path) | |
Variables | |
| $xhprof_legal_image_types | |
| xhprof_generate_dot_script | ( | $ | raw_data, |
| $ | threshold, | ||
| $ | source, | ||
| $ | page, | ||
| $ | func, | ||
| $ | critical_path, | ||
| $ | right = null, |
||
| $ | left = null |
||
| ) |
Generate DOT script from the given raw phprof data.
| raw_data,phprof | profile data. |
| threshold,float,the | threshold value [0,1). The functions in the raw_data whose exclusive wall times ratio are below the threshold will be filtered out and won't apprear in the generated image. |
| page,string(optional),the | root node name. This can be used to replace the 'main()' as the root node. |
| func,string,the | focus function. |
| critical_path,bool,whether | or not to display critical path with bold lines. |
Definition at line 167 of file callgraph_utils.php.


| xhprof_generate_image_by_dot | ( | $ | dot_script, |
| $ | type | ||
| ) |
Generate image according to DOT script. This function will spawn a process with "dot" command and pipe the "dot_script" to it and pipe out the generated image content.
| dot_script,string,the | script for DOT to generate the image. |
| type,one | of the supported image types, see $xhprof_legal_image_types. |
Definition at line 96 of file callgraph_utils.php.

| xhprof_generate_mime_header | ( | $ | type, |
| $ | length | ||
| ) |
Genearte and send MIME header for the output image to client browser.
Definition at line 60 of file callgraph_utils.php.


| xhprof_get_children_table | ( | $ | raw_data | ) |
Definition at line 137 of file callgraph_utils.php.


| xhprof_get_content_by_run | ( | $ | xhprof_runs_impl, |
| $ | run_id, | ||
| $ | type, | ||
| $ | threshold, | ||
| $ | func, | ||
| $ | source, | ||
| $ | critical_path | ||
| ) |
Generate image content from phprof run id.
| object | $xhprof_runs_impl | An object that implements the iXHProfRuns interface |
| run_id,integer,the | unique id for the phprof run, this is the primary key for phprof database table. | |
| type,string,one | of the supported image types. See also $xhprof_legal_image_types. | |
| threshold,float,the | threshold value [0,1). The functions in the raw_data whose exclusive wall times ratio are below the threshold will be filtered out and won't apprear in the generated image. | |
| func,string,the | focus function. |
Definition at line 435 of file callgraph_utils.php.


| xhprof_http_header | ( | $ | name, |
| $ | value | ||
| ) |
Send an HTTP header with the response. You MUST use this function instead of header() so that we can debug header issues because they're virtually impossible to debug otherwise. If you try to commit header(), SVN will reject your commit.
| string | HTTP header name, like 'Location' |
| string | HTTP header value, like 'http://www.example.com/' |
Definition at line 41 of file callgraph_utils.php.


| xhprof_render_diff_image | ( | $ | xhprof_runs_impl, |
| $ | run1, | ||
| $ | run2, | ||
| $ | type, | ||
| $ | threshold, | ||
| $ | source | ||
| ) |
| xhprof_render_image | ( | $ | xhprof_runs_impl, |
| $ | run_id, | ||
| $ | type, | ||
| $ | threshold, | ||
| $ | func, | ||
| $ | source, | ||
| $ | critical_path | ||
| ) |
Generate image from phprof run id and send it to client.
| object | $xhprof_runs_impl | An object that implements the iXHProfRuns interface |
| run_id,integer,the | unique id for the phprof run, this is the primary key for phprof database table. | |
| type,string,one | of the supported image types. See also $xhprof_legal_image_types. | |
| threshold,float,the | threshold value [0,1). The functions in the raw_data whose exclusive wall times ratio are below the threshold will be filtered out and won't apprear in the generated image. | |
| func,string,the | focus function. | |
| bool,does | this run correspond to a PHProfLive run or a dev run? |
Definition at line 471 of file callgraph_utils.php.

| $xhprof_legal_image_types |
array( "jpg" => 1, "gif" => 1, "png" => 1, "ps" => 1, )
Definition at line 24 of file callgraph_utils.php.