Esempio n. 1
0
function print_pc_array($url_params, $results, $base_ct, $base_info, $parent, $run1, $run2)
{
    global $base_path;
    // Construct section title
    if ($parent) {
        $title = 'Parent function';
    } else {
        $title = 'Child function';
    }
    if (count($results) > 1) {
        $title .= 's';
    }
    print "<tr bgcolor='#e0e0ff'><td>";
    print "<b><i><center>" . $title . "</center></i></b>";
    print "</td></tr>";
    $odd_even = 0;
    foreach ($results as $info) {
        $href = "{$base_path}/index.php?" . http_build_query(xhprof_array_set($url_params, 'symbol', $info["fn"]));
        $odd_even = 1 - $odd_even;
        if ($odd_even) {
            print '<tr>';
        } else {
            print '<tr bgcolor="#e5e5e5">';
        }
        print "<td>" . xhprof_render_link($info["fn"], $href);
        print_source_link($info);
        print "</td>";
        pc_info($info, $base_ct, $base_info, $parent);
        print "</tr>";
    }
}
Esempio n. 2
0
function print_pc_array($url_params, $results, $base_ct, $base_info, $parent, $run1, $run2)
{
    global $base_path;
    // Construct section title
    if ($parent) {
        $title = 'Parent function';
    } else {
        $title = 'Child function';
    }
    if (count($results) > 1) {
        $title .= 's';
    }
    print "<tr class='box-table-title'><td>";
    print "<strong>" . $title . "</strong>";
    print "</td></tr>";
    $odd_even = 0;
    foreach ($results as $info) {
        $href = "{$base_path}/?" . http_build_query(xhprof_array_set($url_params, 'symbol', $info["fn"]));
        $odd_even = 1 - $odd_even;
        if ($odd_even) {
            print '<tr>';
        } else {
            print '<tr>';
        }
        print "<td>" . xhprof_render_link($info["fn"], $href) . "</td>";
        pc_info($info, $base_ct, $base_info, $parent);
        print "</tr>";
    }
}