This repository was archived by the owner on Jan 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +33
-16
lines changed
Resources/views/data_collector Expand file tree Collapse file tree 1 file changed +33
-16
lines changed Original file line number Diff line number Diff line change 20
20
<span class =" label" >
21
21
<span class =" icon" >{{ include (' @phpFastCache/data_collector/icon.svg' ) }}</span >
22
22
<strong >PhpFastCache</strong >
23
+ <span class =" count" >
24
+ <span >{{ collector .stats | length }}</span >
25
+ </span >
23
26
</span >
24
27
{% endblock %}
25
28
26
29
{% block panel %}
30
+ <h2 >PhpFastCache Metrics</h2 >
31
+
32
+ <div class =" metrics" >
33
+ <div class =" metric" >
34
+ <span class =" value" > {{ collector .size | sizeFormat(1 ) }}</span >
35
+ <span class =" label" >Total Size</span >
36
+ </div >
37
+ <div class =" metric" >
38
+ <span class =" value" > {{ collector .stats | length }}</span >
39
+ <span class =" label" >Cache Instances</span >
40
+ </div >
41
+ </div >
42
+
43
+ <h2 >PhpFastCache Cache Instance</h2 >
27
44
<div class =" sf-tabs" >
28
45
{% for name , stat in collector .stats %}
29
46
<div class =" tab" >
30
47
<h3 class =" tab-title" >{{ name }}</h3 >
31
48
<div class =" tab-content" >
32
49
<table class =" {{ class | default (' ' ) }}" >
33
50
<tbody >
34
- <tr >
35
- <th >Info</th >
36
- <td >{{ stat .info }}</td >
37
- </tr >
38
- <tr >
39
- <th >Size</th >
40
- <td >{{ stat .size | sizeFormat(1 ) }}</td >
41
- </tr >
42
- <tr >
43
- <th >Data</th >
44
- <td >{{ stat .data }}</td >
45
- </tr >
46
- <tr >
47
- <th >RawData</th >
48
- <td >{{ dump (stat .rawData ) }}</td >
49
- </tr >
51
+ <tr >
52
+ <th >Info</th >
53
+ <td >{{ stat .info }}</td >
54
+ </tr >
55
+ <tr >
56
+ <th >Size</th >
57
+ <td >{{ stat .size | sizeFormat(1 ) }}</td >
58
+ </tr >
59
+ <tr >
60
+ <th >Data</th >
61
+ <td >{{ stat .data }}</td >
62
+ </tr >
63
+ <tr >
64
+ <th >RawData</th >
65
+ <td >{{ dump (stat .rawData ) }}</td >
66
+ </tr >
50
67
</tbody >
51
68
</table >
52
69
</div >
You can’t perform that action at this time.
0 commit comments