コード例 #1
0
ファイル: webgrind.php プロジェクト: phpclub/webgrind
 * Reuse the same window when profiling. Will not open multiple webgrind windows.
 *
 * DEFAULT: TRUE
 */
$config['reuse_window'] = TRUE;
/* WEBGRIND VENDOR OPTIONS */
$config['checkVersion'] = false;
$config['hideWebgrindProfiles'] = true;
/**
* Writable dir for information storage.
* If empty, will use system tmp folder or xdebug tmp
*/
$config['storageDir'] = '';
$config['profilerDir'] = '/tmp';
/**
* Suffix for preprocessed files
*/
$config['preprocessedSuffix'] = '.webgrind';
$config['defaultTimezone'] = 'Europe/Copenhagen';
$config['dateFormat'] = 'Y-m-d H:i:s';
$config['defaultCostformat'] = 'percent';
// 'percent', 'usec' or 'msec'
$config['defaultFunctionPercentage'] = 90;
$config['defaultHideInternalFunctions'] = false;
/**
* sprintf compatible format for generating links to source files. 
* %1$s will be replaced by the full path name of the file
* %2$d will be replaced by the linenumber
*/
$config['fileUrlFormat'] = webgrind::url() . '?op=fileviewer&file=%1$s&line=%2$d';
// Built in fileviewer
コード例 #2
0
ファイル: webgrind_index.php プロジェクト: phpclub/webgrind
		}
		
		function sortBlock(){
			$.blockUI('<div class="block_box"><h1>Sorting...</h1></div>');
		}
		
		function loadBlock(){
			if(!disableAjaxBlock)
				$.blockUI();
			disableAjaxBlock = false;
		}
		
		function checkVersion(){
			disableAjaxBlock = true;
			$.getJSON("<?php 
echo webgrind::url();
?>
",
				{'op':'version_info'},
				function(data){
					if(data.latest_version><?php 
echo webgrind::$webgrindVersion;
?>
){
						$("#version_info").append('Version '+data.latest_version+' is available for <a href="'+data.download_url+'">download</a>.');
					} else {
						$("#version_info").append('You have the latest version.');
					}

				}
			);