Changeset 598
- Timestamp:
- 2009-07-05T07:25:36+02:00 (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 9 edited
-
. (modified) (1 prop)
-
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)
-
opcode_spec.h (modified) (1 diff)
-
xcache.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/admin/common-zh-simplified-utf-8.lang.php
r596 r598 51 51 'Refcount' 52 52 => '引用数', 53 'PhpShared'54 => '共享',55 53 'SrcSize' 56 54 => '源大小', -
branches/1.3/admin/common-zh-traditional-utf-8.lang.php
r596 r598 51 51 'Refcount' 52 52 => '引用數', 53 'PhpShared'54 => '共享',55 53 'SrcSize' 56 54 => '原始檔案大小', -
branches/1.3/admin/help-en.lang.php
r596 r598 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 ofthis entry is holded by a php request</dd>25 <dt><?php echo _T('Refcount'); ?>: </dt><dd>Reference count 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>28 27 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>Size of the source file</dd> 29 28 <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
r596 r598 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>28 27 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>源文件大小</dd> 29 28 <dt><?php echo _T('Modify'); ?>: </dt><dd>源文件最后修改时间</dd> -
branches/1.3/admin/help-zh-traditional-utf-8.lang.php
r596 r598 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>28 27 <dt><?php echo _T('SrcSize'); ?>: </dt><dd>原始檔案大小</dd> 29 28 <dt><?php echo _T('Modify'); ?>: </dt><dd>原始檔案最後修改時間</dd> -
branches/1.3/admin/xcache.tpl.php
r596 r598 148 148 echo '<col align="right" />'; 149 149 echo '<col align="right" />'; 150 echo '<col align="right" />';151 150 } 152 151 … … 164 163 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Size'); ?></a></th> 165 164 <?php if ($isphp) { ?> 166 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('PhpShared'); ?></a></th>167 165 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('SrcSize'); ?></a></th> 168 166 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Modify'); ?></a></th> … … 187 185 $size = size($entry['size']); 188 186 if ($isphp) { 189 $sourcesize = size($entry['sourcesize']); 190 $phprefcount = number_format($entry['phprefcount']); 187 $sourcesize = size($entry['sourcesize']); 191 188 } 192 189 … … 220 217 if ($isphp) { 221 218 echo <<<ENTRY 222 <td int="{$entry['phprefcount']}">{$phprefcount}</td>223 219 <td int="{$entry['sourcesize']}">{$sourcesize}</td> 224 220 <td int="{$entry['mtime']}">{$mtime}</td> -
branches/1.3/opcode_spec.h
r394 r598 29 29 30 30 #define OPSPECS_DEF_ENUM(name) OPSPEC_##name, 31 typedef enum { OPSPECS(OPSPECS_DEF_ENUM) } xc_op_spec_t;31 typedef enum { OPSPECS(OPSPECS_DEF_ENUM) OPSPEC_DUMMY } xc_op_spec_t; 32 32 33 33 typedef struct { -
branches/1.3/xcache.c
r596 r598 446 446 array_init(ei); 447 447 448 add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size); 448 449 add_assoc_long_ex(ei, ZEND_STRS("refcount"), entry->refcount); 449 450 add_assoc_long_ex(ei, ZEND_STRS("hits"), entry->hits); … … 476 477 case XC_TYPE_PHP: 477 478 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);480 479 add_assoc_long_ex(ei, ZEND_STRS("sourcesize"), php->sourcesize); 481 480 #ifdef HAVE_INODE … … 494 493 #endif 495 494 break; 496 497 495 case XC_TYPE_VAR: 498 496 var = entry->data.var; 499 add_assoc_long_ex(ei, ZEND_STRS("size"), entry->size);500 497 break; 501 498 … … 1444 1441 1445 1442 err: 1443 xc_destroy(); 1446 1444 if (xc_php_caches || xc_var_caches) { 1447 xc_destroy();1448 1445 /* shm destroied in xc_destroy() */ 1449 1446 } 1450 1447 else if (shm) { 1451 xc_destroy();1452 1448 xc_shm_destroy(shm); 1453 1449 }
Note: See TracChangeset
for help on using the changeset viewer.

