-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++: linters and profilers #30
Comments
Also perf, the Linux kernel profiler is very good, if a bit difficult to use due to not overly abundant documentation. There's a CppCon 2015 presentation on it that is useful, I'll see if I can dig up some links. I've tried cpplint and cppcheck, but they didn't find any errors in my code. Especially cpplint seems to check mainly for mistakes that you won't make if you use proper C++. Still, could be useful for if you're dealing with crappy existing code. |
So it does exactly what you would hope for ;-) Remember: the target of this information is also less experienced programmers. |
Sweet, didn't know about PAPI but it looks pretty awesome. I think I'll try that on my forest fragmentation code next time a round tuit comes, I'll let you know how it goes :). |
No time to review now, can we try again at the next sprint? :) |
Sure. |
Good linters perhaps should be listed under a separate subheader under Style:
These can (and perhaps should, though cpplint can be debated, I guess) be used simultaneously, they are complementary.
Profilers:
Good article explaining pitfalls in using profilers:
http://yosefk.com/blog/how-profilers-lie-the-cases-of-gprof-and-kcachegrind.html
The text was updated successfully, but these errors were encountered: