调试方法和摘要

持续更新中。

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);

你可能感兴趣的:(调试方法和摘要)