Skip to content

Commit 1813c8a

Browse files
authored
Update README.md
1 parent 2ec4dd5 commit 1813c8a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ XHProf is a function-level hierarchical profiler for PHP and has a simple HTML b
33

44
This version supports PHP7
55

6-
#Installation
6+
# Installation
77
```
88
git clone https://github.com/longxinH/xhprof.git ./xhprof
99
cd xhprof/extension/
@@ -12,15 +12,15 @@ cd xhprof/extension/
1212
make && sudo make install
1313
```
1414

15-
####configuration add to your php.ini
15+
#### configuration add to your php.ini
1616
```
1717
[xhprof]
1818
extension = xhprof.so
1919
xhprof.output_dir = /tmp/xhprof
2020
```
2121

22-
#新增
23-
####pdo占位符转换
22+
# 新增
23+
#### pdo占位符转换
2424
pdo预处理占位符将会转换成实际的参数,更好的掌握mysql执行消耗(只用做xhprof记录,不改变程序执行过程)
2525
```php
2626
$_sth = $db->prepare("SELECT * FROM user where userid = :id and username = :name");
@@ -31,21 +31,21 @@ $_sth = $db->prepare("SELECT * FROM user where userid = ?");
3131
$_sth->execute([1]);
3232
$data2 = $_sth->fetch();
3333
```
34-
#####xhprof记录数据
34+
##### xhprof记录数据
3535
```
3636
PDOStatement::execute#SELECT * FROM user where userid = 1 and username = admin
3737
3838
PDOStatement::execute#SELECT * FROM user where userid = 1
3939
```
4040

41-
####curl地址记录
41+
#### curl地址记录
4242
```php
4343
$ch = curl_init();
4444
curl_setopt($ch, CURLOPT_URL, "http://www.baidu.com");
4545
$output = curl_exec($ch);
4646
curl_close($ch);
4747
```
48-
#####xhprof记录数据
48+
##### xhprof记录数据
4949
```
5050
curl_exec#http://www.baidu.com
5151
```

0 commit comments

Comments
 (0)