Fix segfault bugs in profiler when GError is not used.

Improved profiler code documentation.
Removed tests target from "all" target (can't be in "all" because
of stubs). Changed docs accordingly.