调试方法和摘要

来源:互联网 发布:淘宝现金红包哪里抢 编辑:程序博客网 时间:2024/06/02 16:51

持续更新中。

1. Turing on all the logging and having a small test case is useful.

2. Debug

 a.gdb and gdb server, 

 b.vs

 c.step by step

 d.set breakpoint

3.  Set the Macro by the run shell or register table

4.  Set the config inforamtion in the config file.



性能调试方法:

1. OProfile.

2. Time log.(single thread)


start = GetTime();
DoSomething();
end = GetTime();
printf("elapsedTime = %f\n", end - start);

start = GetTime()
DoSomething()
glFinish()
end = GetTime
printf("elapsedTime = %f\n", end - start);
原创粉丝点击