Difference between revisions of "Development Tools"

From Mumble Wiki
Jump to: navigation, search
(MinGW)
(CodeAnalyst)
Line 33: Line 33:
 
"[[http://valgrind.org/ Valgrind]] is an award-winning suite of tools for debugging and profiling Linux programs." We use this to make sure the server has no memory leaks.
 
"[[http://valgrind.org/ Valgrind]] is an award-winning suite of tools for debugging and profiling Linux programs." We use this to make sure the server has no memory leaks.
  
= CodeAnalyst =
+
= Intel VTune =
  
[[http://developer.amd.com/cawin.aspx CodeAnalyst for Windows]] is AMD's performance analysis software. I like Intel VTune better, but VTune runs exclusively on Intel processors, and I have a Athlon-64. A proper run with the profiler will give you what module Mumble spends time in (should be 90% or so in libspeex.dll), and if it had understood the MinGW debug format we would get the time distribution per function as well.
+
VTune is Intel's performance analyzer, which through a convoluted process gives more or less accurate benchmarking results. While valgrind will tell you exactly how many times each instruction is executed, it can't tell you how long it takes to execute that instruction. Hopefully someday VTune's output will be as detailed and easy to use as valgrind's kcachegrind.
  
 
= MSDN =
 
= MSDN =

Revision as of 18:14, 26 August 2008

Since we get asked a lot, here's the tools we use for software development:

Klocwork

http://www.klocwork.com/images/logo.gif

"Mumble has been analyzed with Klocwork source code analysis, the most accurate and comprehensive tool for finding critical programming errors and security vulnerabilities."

I must say I really love Klocwork. For opensource applications, they'll do the analysis for free (providing you're the main author). It's found some really obscure bugs in Mumble and Murmur, bugs that would have caused crashes had they not been fixed before release. While my QA department (aka: My guild who is running the test builds) will find all bugs from normal use, Klocwork finds bugs that occur only under circumstances no sane user would ever attempt. It also ensures server and client input is sanitized, as it easily catches all those "what if that value is really invalid" instances.

Visual Studio 2008

It's a necessity for compiling programs on Windows using modern interfaces such as WASAPI. We only use the compilers though; editing is still done in Textpad.

Qt

[Qt] is both a widget toolkit and a set of very handy utility templates like container classes, network handling. It's all crossplatform, meaning that Murmur runs on pretty much any modern architecture, including the qmake files. I have a few projects that doesn't use Qt at all, but uses Qmake :)

TextPad

[Textpad], a lightweight editor for Windows. Not the best or most flashy, but works for me.

Joe

[Joe's Own Editor] is my preference for UNIX editor. It's definitly not the most userfriendly, most powerfull, most fancy or least buggy editor, but I sort of got stuck on it.

Speaking of editors, if anyone has a suggestion for a good editor that forcibly auto-indents, supports code collapse (so just the prototype is shown), highlighting, code completion and compiler output parsing, then send me an email.

Valgrind

"[Valgrind] is an award-winning suite of tools for debugging and profiling Linux programs." We use this to make sure the server has no memory leaks.

Intel VTune

VTune is Intel's performance analyzer, which through a convoluted process gives more or less accurate benchmarking results. While valgrind will tell you exactly how many times each instruction is executed, it can't tell you how long it takes to execute that instruction. Hopefully someday VTune's output will be as detailed and easy to use as valgrind's kcachegrind.

MSDN

[MSDN] is Microsoft's developer website, and contains an updated decription for each and every function available on windows. I find the website easier to use than the MSDN helpfiles, as the website has all the files searchable as one, instead of having one file for the DirectX SDK, one for the Platform and so on.

SourceForge

[SourceForge] is not only a website, it's a very handy tool. It comes with CVS, which we use extensively, as well as forums, wikis and mailing lists.

NSIS

[Nullsoft Scriptable Install System] is the installer made famous by WinAmp. It's a easy-to-use, efficient and userfriendly install system; it took us less than 15 minutes to make the first installer for Mumble.