Instrumental (diagnostic) library for C ++

I am thinking of adding code to my application that would collect diagnostic information for further study. Is there any C ++ library created for this purpose? What I'm trying to do seems to be profiling, but it's not the same, because the collected data will be used more for debugging than profiling.

EDIT:
Platform: Linux
Diagnostic information for collecting: information obtained as a result of application logic, various statements and statistics.

+3
source share
4 answers

libcwd:

Libcwd - ++ . , , : demangled.

, pantheios:

Pantheios - API C/++, 100% , , . , ( ), , , C , .

+2
+2

- , , , . GDB . .

- :

, , . , , , . , , ( ). , , , - .

GDB , . GDB . GDB ( openssl ). GDB , . GDB ; , , .

, gdb- ; gdb script . gdb script. , , script . , make make script .

, GDB , , , , .

+1

If you are running your application on Linux, you can use "ulimit" to generate the kernel when the application crashes (or assert (false) or kill -6), later you can debug it using gdb (gdb -c core_file binary_file) and parse the stack .

Salu2.

PD. use gprof for profiling

0
source

Source: https://habr.com/ru/post/1709209/


All Articles