File tree Expand file tree Collapse file tree 3 files changed +94
-0
lines changed
lib/Pinpoint/Plugins/SysV2/_apcu Expand file tree Collapse file tree 3 files changed +94
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,33 @@ Examples:
72
72
73
73
> pinpoint-php-aop wrappers your class with an onBefore/onEnd/onException suite.
74
74
75
+ #### Supported libraries/framework
76
+
77
+ <details > <summary >Libraries</summary >
78
+
79
+ Type|Name|Version
80
+ ---|---|---
81
+ Built-in | curl|
82
+ ||memcached|` 3.2.0 `
83
+ || mysqli|
84
+ || pdo|
85
+ ||phpredis|` 6.0.2 `
86
+ || apcu|
87
+ |User |guzzlehttp| ` 8.0.x-dev `
88
+ ||predis|` 3.0 `
89
+ ||mongodb|` v1.19.x `
90
+ </details >
91
+
92
+ <details > <summary >Frameworks</summary >
93
+
94
+ Name|Version|
95
+ | ---| ---|
96
+ | Yii2||
97
+ | wordpress||
98
+ | thinkphp8||
99
+
100
+ </details >
101
+
75
102
#### Data Chart Map
76
103
77
104
![ how it works] ( https://raw.githubusercontent.com/pinpoint-apm/pinpoint-c-agent/master/images/principle_v0.2.x.png )
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /******************************************************************************
4
+ * Copyright 2024 NAVER Corp. *
5
+ * *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"); *
7
+ * you may not use this file except in compliance with the License. *
8
+ * You may obtain a copy of the License at *
9
+ * *
10
+ * http://www.apache.org/licenses/LICENSE-2.0 *
11
+ * *
12
+ * Unless required by applicable law or agreed to in writing, software *
13
+ * distributed under the License is distributed on an "AS IS" BASIS, *
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15
+ * See the License for the specific language governing permissions and *
16
+ * limitations under the License. *
17
+ ******************************************************************************/
18
+ namespace Pinpoint \Plugins \SysV2 \_apcu ;
19
+
20
+ if (!extension_loaded ('apcu ' )) {
21
+ return ;
22
+ }
23
+
24
+ require_once __DIR__ . "/apcu.php " ;
25
+
26
+ // author: eeliu
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /******************************************************************************
4
+ * Copyright 2024 NAVER Corp. *
5
+ * *
6
+ * Licensed under the Apache License, Version 2.0 (the "License"); *
7
+ * you may not use this file except in compliance with the License. *
8
+ * You may obtain a copy of the License at *
9
+ * *
10
+ * http://www.apache.org/licenses/LICENSE-2.0 *
11
+ * *
12
+ * Unless required by applicable law or agreed to in writing, software *
13
+ * distributed under the License is distributed on an "AS IS" BASIS, *
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15
+ * See the License for the specific language governing permissions and *
16
+ * limitations under the License. *
17
+ ******************************************************************************/
18
+ namespace Pinpoint \Plugins \SysV2 \_apcu ;
19
+
20
+ use function Pinpoint \Plugins \{
21
+ pinpoint_join_cut
22
+ };
23
+
24
+ use function Pinpoint \Plugins \SysV2 \make_variable_length_list_plugin ;
25
+
26
+ $ points = [
27
+ make_variable_length_list_plugin (['apcu_add ' ]),
28
+ make_variable_length_list_plugin (['apcu_fetch ' ]),
29
+ make_variable_length_list_plugin (['apcu_store ' ]),
30
+ make_variable_length_list_plugin (['apcu_clear_cache ' ]),
31
+ ];
32
+
33
+ foreach ($ points as $ point ) {
34
+ pinpoint_join_cut (
35
+ $ point [0 ],
36
+ $ point [1 ],
37
+ $ point [2 ],
38
+ $ point [3 ]
39
+ );
40
+ }
41
+ // author: eeliu
You can’t perform that action at this time.
0 commit comments