The main usage is for unit testing coverage, but you can also use it to know the executed lines in a program for debugging purpose.
There is a situation that I want to do a functional test to a background process, like a server-side program. This myserver.exe ...