Changeset 596
- Timestamp:
- 07/05/2009 06:57:59 AM (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 9 modified
-
. (modified) (1 prop)
-
Makefile.frag (modified) (1 diff)
-
admin/common-zh-simplified-utf-8.lang.php (modified) (1 diff)
-
admin/common-zh-traditional-utf-8.lang.php (modified) (1 diff)
-
admin/help-en.lang.php (modified) (1 diff)
-
admin/help-zh-simplified-utf-8.lang.php (modified) (1 diff)
-
admin/help-zh-traditional-utf-8.lang.php (modified) (1 diff)
-
admin/xcache.tpl.php (modified) (4 diffs)
-
xcache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/Makefile.frag
r354 r596 41 41 TEST_PHP_SRCDIR=$(top_srcdir) \ 42 42 CC="$(CC)" \ 43 $(srcdir)/run-xcachetest -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS) -c $(srcdir)/xcache-test.ini43 $(srcdir)/run-xcachetest -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS) $(TEST_ARGS) -c $(srcdir)/xcache-test.ini -
branches/1.3/admin/common-zh-simplified-utf-8.lang.php
r457 r596 51 51 'Refcount' 52 52 => '引用数', 53 'PhpShared' 54 => '共享', 53 55 'SrcSize' 54 56 => '源大小', -
branches/1.3/admin/common-zh-traditional-utf-8.lang.php
r457 r596 51 51 'Refcount' 52 52 => '引用數', 53 'PhpShared' 54 => '共享', 53 55 'SrcSize' 54 56 => '原始檔案大小', -
branches/1.3/admin/help-en.lang.php
r459 r596 23 23 <dt><?php echo _T('entry'); ?>: </dt><dd>The entry name or filename</dd> 24 24 <dt><?php echo _T('Hits'); ?>: </dt><dd>Times this entry is hit (loaded from this cache)</dd> 25 <dt><?php echo _T('Refcount'); ?>: </dt><dd>Reference count this entry is holded by a php request</dd>25 <dt><?php echo _T('Refcount'); ?>: </dt><dd>Reference count of this entry is holded by a php request</dd> 26 26 <dt><?php echo _T('Size'); ?>: </dt><dd>Size in bytes of this entry in the cache</dd> 27 <dt><?php echo _T('PhpShared'); ?>: </dt><dd>Count of entry sharing this php data</dd> 27 28 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>Size of the source file</dd> 28 29 <dt><?php echo _T('Modify'); ?>: </dt><dd>Last modified time of the source file</dd> -
branches/1.3/admin/help-zh-simplified-utf-8.lang.php
r459 r596 25 25 <dt><?php echo _T('Refcount'); ?>: </dt><dd>项目依然被其他进程占据的引用次数</dd> 26 26 <dt><?php echo _T('Size'); ?>: </dt><dd>项目在共享内存里占用字节数</dd> 27 <dt><?php echo _T('PhpShared'); ?>: </dt><dd>与本项目相同 PHP 代码的个数</dd> 27 28 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>源文件大小</dd> 28 29 <dt><?php echo _T('Modify'); ?>: </dt><dd>源文件最后修改时间</dd> -
branches/1.3/admin/help-zh-traditional-utf-8.lang.php
r459 r596 25 25 <dt><?php echo _T('Refcount'); ?>: </dt><dd>項目依然被其他程序佔用的引用次數</dd> 26 26 <dt><?php echo _T('Size'); ?>: </dt><dd>項目在共享記憶體裡佔用位元數</dd> 27 <dt><?php echo _T('PhpShared'); ?>: </dt><dd>與本項目相同 PHP 內容的个數</dd> 27 28 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>原始檔案大小</dd> 28 29 <dt><?php echo _T('Modify'); ?>: </dt><dd>原始檔案最後修改時間</dd> -
branches/1.3/admin/xcache.tpl.php
r457 r596 148 148 echo '<col align="right" />'; 149 149 echo '<col align="right" />'; 150 echo '<col align="right" />'; 150 151 } 151 152 … … 163 164 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Size'); ?></a></th> 164 165 <?php if ($isphp) { ?> 166 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('PhpShared'); ?></a></th> 165 167 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('SrcSize'); ?></a></th> 166 168 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Modify'); ?></a></th> … … 185 187 $size = size($entry['size']); 186 188 if ($isphp) { 187 $sourcesize = size($entry['sourcesize']); 189 $sourcesize = size($entry['sourcesize']); 190 $phprefcount = number_format($entry['phprefcount']); 188 191 } 189 192 … … 217 220 if ($isphp) { 218 221 echo <<<ENTRY 222 <td int="{$entry['phprefcount']}">{$phprefcount}</td> 219 223 <td int="{$entry['sourcesize']}">{$sourcesize}</td> 220 224 <td int="{$entry['mtime']}">{$mtime}</td> -
branches/1.3/xcache.c
r595 r596 446 446 array_init(ei); 447 447 448 add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size);449 448 add_assoc_long_ex(ei, ZEND_STRS("refcount"), entry->refcount); 450 449 add_assoc_long_ex(ei, ZEND_STRS("hits"), entry->hits); … … 477 476 case XC_TYPE_PHP: 478 477 php = entry->data.php; 478 add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size + php->size); 479 add_assoc_long_ex(ei, ZEND_STRS("phprefcount"), php->refcount); 479 480 add_assoc_long_ex(ei, ZEND_STRS("sourcesize"), php->sourcesize); 480 481 #ifdef HAVE_INODE … … 493 494 #endif 494 495 break; 496 495 497 case XC_TYPE_VAR: 496 498 var = entry->data.var; 499 add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size); 497 500 break; 498 501

