Skip to content

Commit cb701b2

Browse files
committed
add
1 parent 7e71755 commit cb701b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+789
-114
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
this repo contains many project for easy manage small project
22
generally, those projects used to learn new language
33

4-
5-
6-
7-
https://github.com/testerSunshine/12306

bit_type_handle/bit_assign

-8.16 KB
Binary file not shown.

bit_type_handle/bit_assign.c

Lines changed: 0 additions & 30 deletions
This file was deleted.

bit_type_handle/build.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

graphPvtrace/pvtrace.zip

3.73 KB
Binary file not shown.

graphPvtrace/readme.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## 安装pvtrace和Graphviz
2+
1. 安装pvtrace
3+
4+
$ mkdir -p ~/project1 && cd ~/project1
5+
$ wget http://www.mtjones.com/developerworks/pvtrace.zip
6+
$ unzip pvtrace.zip -d pvtrace
7+
$ cd pvtrace
8+
$ make
9+
$ sudo make install
10+
# 查看pvtrace相关文件
11+
$ ls -1 pvtrace
12+
instrument.c
13+
Makefile
14+
stack.c
15+
stack.h
16+
symbols.c
17+
symbols.h
18+
trace.c
19+
2. 安装graphviz
20+
21+
$ sudo yum install graphviz
22+
23+
24+
## 测试
25+
26+
1. 编辑测试文件test.c
27+
28+
2. 编译测试程序
29+
30+
$ gcc -g -finstrument-functions test.c ./pvtrace/instrument.c -o test
31+
注意: 必须有`-g -finstrument-functions`选项,否则后续就采集不到信息了。
32+
3. 执行程序,生成信息文件trace.txt
33+
34+
$ ./test
35+
4. 通过pvtrace、可执行文件及trace.txt,生成信息文件graph.dot
36+
37+
$ pvtrace test
38+
5. 通过dot工具将graph.dot,转为图像文件graph.png
39+
40+
$ dot -Tpng graph.dot -o graph.png
41+
6. 浏览生成的图片
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pbREADME.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

protoBuf/readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,15 @@ sudo ldconfig # refresh shared library cache.
4747

4848
this option should loacl behind of `-lprotobuf`, like this `-lprotobuf -lpthread`
4949
otherwise, protobufObj.PrintDebugString() will cause coredump;
50+
51+
52+
2. can not find lib of protobuf ?
53+
54+
result:
55+
`sudo vi /etc/ld.so.conf`
56+
57+
add this line:`/usr/local/protobuf/lib` to ld.so.conf
58+
it mean add path of proto to ldconfig
59+
and then run command
60+
61+
`sudo ldconfig`
File renamed without changes.
File renamed without changes.
File renamed without changes.

templete/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

templete/code/project/CMakeLists.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

templete/code/project/build.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

templete/code/project/main.cpp

Lines changed: 0 additions & 17 deletions
This file was deleted.

templete/code/project/makefiles

Lines changed: 0 additions & 9 deletions
This file was deleted.

templete/code/project/output/exe

-28.2 KB
Binary file not shown.

testFrameWork/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fakeApp/project/build
2+
fakeApp/project/output
3+
linux/project/build
4+
linux/project/output
5+
lows/project/build
6+
lows/project/output

0 commit comments

Comments
 (0)