Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
";
echo "";
echo "";
// javascript
echo "";
echo "";
echo "";
echo "";
}
/*
* Formats call counts for XHProf reports.
*
* Description:
* Call counts in single-run reports are integer values.
* However, call counts for aggregated reports can be
* fractional. This function will print integer values
* without decimal point, but with commas etc.
*
* 4000 ==> 4,000
*
* It'll round fractional values to decimal precision of 3
* 4000.1212 ==> 4,000.121
* 4000.0001 ==> 4,000
*
*/
function xhprof_count_format($num) {
$num = round($num, 3);
if (round($num) == $num) {
return number_format($num);
} else {
return number_format($num, 3);
}
}
function xhprof_percent_format($s, $precision = 1) {
return sprintf('%.'.$precision.'f%%', 100 * $s);
}
/**
* Implodes the text for a bunch of actions (such as links, forms,
* into a HTML list and returns the text.
*/
function xhprof_render_actions($actions) {
$out = array();
if (count($actions)) {
$out[] = '
element with a numeric value.
*/
function print_td_num($num, $fmt_func, $bold=false, $attributes=null) {
$class = get_print_class($num, $bold);
if (!empty($fmt_func) && is_numeric($num) ) {
$num = call_user_func($fmt_func, $num);
}
print("
$num
\n");
}
/**
* Prints a
element with a pecentage.
*/
function print_td_pct($numer, $denom, $bold=false, $attributes=null) {
global $vbar;
global $vbbar;
global $diff_mode;
$class = get_print_class($numer, $bold);
if ($denom == 0) {
$pct = "N/A%";
} else {
$pct = xhprof_percent_format($numer / abs($denom));
}
print("
$pct
\n");
}
/**
* Print "flat" data corresponding to one function.
*
* @author Kannan
*/
function print_function_info($url_params, $info, $sort, $run1, $run2) {
static $odd_even = 0;
global $totals;
global $sort_col;
global $metrics;
global $format_cbk;
global $display_calls;
global $base_url;
// Toggle $odd_or_even
$odd_even = 1 - $odd_even;
if ($odd_even) {
print("
\n");
if ($limit >= 0) {
$limit = min($size, $limit);
for ($i = 0; $i < $limit; $i++) {
print_function_info($url_params, $flat_data[$i], $sort, $run1, $run2);
}
} else {
// if $limit is negative, print abs($limit) items starting from the end
$limit = min($size, abs($limit));
for ($i = 0; $i < $limit; $i++) {
print_function_info($url_params, $flat_data[$size - $i - 1], $sort, $run1, $run2);
}
}
print("
");
// let's print the display all link at the bottom as well...
if ($display_link) {
echo '
' . $display_link . '
';
}
}
/**
* Generates a tabular report for all functions. This is the top-level report.
*
* @author Kannan
*/
function full_report($url_params, $symbol_tab, $sort, $run1, $run2) {
global $vwbar;
global $vbar;
global $totals;
global $totals_1;
global $totals_2;
global $metrics;
global $diff_mode;
global $descriptions;
global $sort_col;
global $format_cbk;
global $display_calls;
global $base_path;
global $base_url;
$possible_metrics = xhprof_get_possible_metrics();
if ($diff_mode) {
$base_url_params = xhprof_array_unset(xhprof_array_unset($url_params,
'run1'),
'run2');
$href1 = "$base_url?" .
http_build_query(xhprof_array_set($base_url_params,
'run', $run1));
$href2 = "$base_url?" .
http_build_query(xhprof_array_set($base_url_params,
'run', $run2));
print("
");
// These will be used for pop-up tips/help.
// Related javascript code is in: xhprof_report.js
print("\n");
print('');
print("\n");
}
/**
* Generate the profiler report for a single run.
*
* @author Kannan
*/
function profiler_single_run_report ($url_params,
$xhprof_data,
$run_desc,
$rep_symbol,
$sort,
$run) {
init_metrics($xhprof_data, $rep_symbol, $sort, false);
profiler_report($url_params, $rep_symbol, $sort, $run, $run_desc,
$xhprof_data);
}
/**
* Generate the profiler report for diff mode (delta between two runs).
*
* @author Kannan
*/
function profiler_diff_report($url_params,
$xhprof_data1,
$run1_desc,
$xhprof_data2,
$run2_desc,
$rep_symbol,
$sort,
$run1,
$run2) {
// Initialize what metrics we'll display based on data in Run2
init_metrics($xhprof_data2, $rep_symbol, $sort, true);
profiler_report($url_params,
$rep_symbol,
$sort,
$run1,
$run1_desc,
$xhprof_data1,
$run2,
$run2_desc,
$xhprof_data2);
}
/**
* Generate a XHProf Display View given the various URL parameters
* as arguments. The first argument is an object that implements
* the iXHProfRuns interface.
*
* @param object $xhprof_runs_impl An object that implements
* the iXHProfRuns interface
*.
* @param array $url_params Array of non-default URL params.
*
* @param string $source Category/type of the run. The source in
* combination with the run id uniquely
* determines a profiler run.
*
* @param string $run run id, or comma separated sequence of
* run ids. The latter is used if an aggregate
* report of the runs is desired.
*
* @param string $wts Comma separate list of integers.
* Represents the weighted ratio in
* which which a set of runs will be
* aggregated. [Used only for aggregate
* reports.]
*
* @param string $symbol 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.
*
* @param string $run1 Base run id (for diff reports)
*
* @param string $run2 New run id (for diff reports)
*
*/
function displayXHProfReport($xhprof_runs_impl, $url_params, $source,
$run, $wts, $symbol, $sort, $run1, $run2) {
if ($run) { // specific run to display?
// run may be a single run or a comma separate list of runs
// that'll be aggregated. If "wts" (a comma separated list
// of integral weights is specified), the runs will be
// aggregated in that ratio.
//
$runs_array = explode(",", $run);
if (count($runs_array) == 1) {
$xhprof_data = $xhprof_runs_impl->get_run($runs_array[0],
$source,
$description);
} else {
if (!empty($wts)) {
$wts_array = explode(",", $wts);
} else {
$wts_array = null;
}
$data = xhprof_aggregate_runs($xhprof_runs_impl,
$runs_array, $wts_array, $source, false);
$xhprof_data = $data['raw'];
$description = $data['description'];
}
profiler_single_run_report($url_params,
$xhprof_data,
$description,
$symbol,
$sort,
$run);
} else if ($run1 && $run2) { // diff report for two runs
$xhprof_data1 = $xhprof_runs_impl->get_run($run1, $source, $description1);
$xhprof_data2 = $xhprof_runs_impl->get_run($run2, $source, $description2);
profiler_diff_report($url_params,
$xhprof_data1,
$description1,
$xhprof_data2,
$description2,
$symbol,
$sort,
$run1,
$run2);
} else {
echo "No XHProf runs specified in the URL.";
if (method_exists($xhprof_runs_impl, 'list_runs')) {
$xhprof_runs_impl->list_runs();
}
}
}