include/SugarXHprof/xhprof_lib/display/xhprof.php

Show: inherited
    Table of Contents

    Functions

    functiondisplayXHProfReport( object $xhprof_runs_impl, array $url_params, string $source, string $run, string $wts, string $symbol,  $sort, string $run1, string $run2 ) : void

    Generate a XHProf Display View given the various URL parameters as arguments. The first argument is an object that implements the iXHProfRuns interface.

    Parameters
    Name Type Description
    $xhprof_runs_impl object

    An object that implements the iXHProfRuns interface .

    $url_params array

    Array of non-default URL params.

    $source string

    Category/type of the run. The source in combination with the run id uniquely determines a profiler run.

    $run string

    run id, or comma separated sequence of run ids. The latter is used if an aggregate report of the runs is desired.

    $wts string

    Comma separate list of integers. Represents the weighted ratio in which which a set of runs will be aggregated. [Used only for aggregate reports.]

    $symbol string

    Function symbol. If non-empty then the parent/child view of this function is displayed. If empty, a flat-profile view of the functions is displayed.

    $sort
    $run1 string

    Base run id (for diff reports)

    $run2 string

    New run id (for diff reports)

    functionfull_report(  $url_params,  $symbol_tab,  $sort,  $run1,  $run2 ) : void

    Generates a tabular report for all functions. This is the top-level report.

    Parameters
    Name Type Description
    $url_params
    $symbol_tab
    $sort
    $run1
    $run2
    Details
    Author
    Kannan  
    functionget_print_class(  $num,  $bold ) : void

    Given a number, returns the td class to use for display.

    For instance, negative numbers in diff reports comparing two runs (run1 & run2) represent improvement from run1 to run2. We use green to display those deltas, and red for regression deltas.

    Parameters
    Name Type Description
    $num
    $bold
    functionget_tooltip_attributes(  $type,  $metric ) : void

    Return attribute names and values to be used by javascript tooltip.

    Parameters
    Name Type Description
    $type
    $metric
    functionpc_info(  $info,  $base_ct,  $base_info,  $parent ) : void

    Print info for a parent or child function in the parent & children report.

    Parameters
    Name Type Description
    $info
    $base_ct
    $base_info
    $parent
    Details
    Author
    Kannan  
    functionpct(  $a,  $b ) : void

    Computes percentage for a pair of values, and returns it in string format.

    Parameters
    Name Type Description
    $a
    $b
    functionprint_flat_data(  $url_params,  $title,  $flat_data,  $sort,  $run1,  $run2,  $limit ) : void

    Print non-hierarchical (flat-view) of profiler data.

    Parameters
    Name Type Description
    $url_params
    $title
    $flat_data
    $sort
    $run1
    $run2
    $limit
    Details
    Author
    Kannan  
    functionprint_function_info(  $url_params,  $info,  $sort,  $run1,  $run2 ) : void

    Print "flat" data corresponding to one function.

    Parameters
    Name Type Description
    $url_params
    $info
    $sort
    $run1
    $run2
    Details
    Author
    Kannan  
    functionprint_pc_array(  $url_params,  $results,  $base_ct,  $base_info,  $parent,  $run1,  $run2 ) : void

    Parameters
    Name Type Description
    $url_params
    $results
    $base_ct
    $base_info
    $parent
    $run1
    $run2
    functionprint_source_link(  $info ) : void

    Parameters
    Name Type Description
    $info
    functionprint_symbol_summary(  $symbol_info,  $stat,  $base ) : void

    Parameters
    Name Type Description
    $symbol_info
    $stat
    $base
    functionprint_td_num(  $num,  $fmt_func,  $bold = false,  $attributes = null ) : void

    Prints a element with a numeric value.

    Parameters
    Name Type Description
    $num
    $fmt_func
    $bold
    $attributes
    functionprint_td_pct(  $numer,  $denom,  $bold = false,  $attributes = null ) : void

    Prints a element with a pecentage.

    Parameters
    Name Type Description
    $numer
    $denom
    $bold
    $attributes
    functionprofiler_diff_report(  $url_params,  $xhprof_data1,  $run1_desc,  $xhprof_data2,  $run2_desc,  $rep_symbol,  $sort,  $run1,  $run2 ) : void

    Generate the profiler report for diff mode (delta between two runs).

    Parameters
    Name Type Description
    $url_params
    $xhprof_data1
    $run1_desc
    $xhprof_data2
    $run2_desc
    $rep_symbol
    $sort
    $run1
    $run2
    Details
    Author
    Kannan  
    functionprofiler_report(  $url_params,  $rep_symbol,  $sort,  $run1,  $run1_desc,  $run1_data,  $run2 = 0,  $run2_desc = "",  $run2_data = array() ) : void

    Analyze raw data & generate the profiler report (common for both single run mode and diff mode).

    Parameters
    Name Type Description
    $url_params
    $rep_symbol
    $sort
    $run1
    $run1_desc
    $run1_data
    $run2
    $run2_desc
    $run2_data
    Details
    Author
    : Kannan  
    functionprofiler_single_run_report(  $url_params,  $xhprof_data,  $run_desc,  $rep_symbol,  $sort,  $run ) : void

    Generate the profiler report for a single run.

    Parameters
    Name Type Description
    $url_params
    $xhprof_data
    $run_desc
    $rep_symbol
    $sort
    $run
    Details
    Author
    Kannan  
    functionsort_cbk(  $a,  $b ) : void

    Callback comparison operator (passed to usort() for sorting array of tuples) that compares array elements based on the sort column specified in $sort_col (global parameter).

    Parameters
    Name Type Description
    $a
    $b
    Details
    Author
    Kannan  
    functionstat_description(  $stat ) : void

    Get the appropriate description for a statistic (depending upon whether we are in diff report mode or single run report mode).

    Parameters
    Name Type Description
    $stat
    Details
    Author
    Kannan  
    functionsymbol_report(  $url_params,  $run_data,  $symbol_info,  $sort,  $rep_symbol,  $run1,  $symbol_info1 = null,  $run2 = 0,  $symbol_info2 = null ) : void

    Generates a report for a single function/symbol.

    Parameters
    Name Type Description
    $url_params
    $run_data
    $symbol_info
    $sort
    $rep_symbol
    $run1
    $symbol_info1
    $run2
    $symbol_info2
    Details
    Author
    Kannan  
    functionxhprof_count_format(  $num ) : void

    Parameters
    Name Type Description
    $num
    functionxhprof_include_js_css(  $ui_dir_url_path = null ) : void

    Generate references to required stylesheets & javascript.

    If the calling script (such as index.php) resides in a different location that than 'xhprof_html' directory the caller must provide the URL path to 'xhprof_html' directory so that the correct location of the style sheets/javascript can be specified in the generated HTML.

    Parameters
    Name Type Description
    $ui_dir_url_path
    functionxhprof_percent_format(  $s,  $precision = 1 ) : void

    Parameters
    Name Type Description
    $s
    $precision
    functionxhprof_render_actions(  $actions ) : void

    Implodes the text for a bunch of actions (such as links, forms, into a HTML list and returns the text.

    Parameters
    Name Type Description
    $actions
    functionxhprof_render_link( \html-str $content, \raw-str $href, \raw-str $class = '', \raw-str $id = '', \raw-str $title = '', \raw-str $target = '', \raw-str $onclick = '', \raw-str $style = '', \raw-str $access = '', \raw-str $onmouseover = '', \raw-str $onmouseout = '', \raw-str $onmousedown = '' ) : void

    Parameters
    Name Type Description
    $content \html-str

    the text/image/innerhtml/whatever for the link

    $href \raw-str
    $class \raw-str
    $id \raw-str
    $title \raw-str
    $target \raw-str
    $onclick \raw-str
    $style \raw-str
    $access \raw-str
    $onmouseover \raw-str
    $onmouseout \raw-str
    $onmousedown \raw-str
    Documentation was generated by DocBlox 0.18.1.