I'm wr开发者_JAVA技巧iting a multithreaded server using Ptrheads and I want to trace the execution of individual threads.
What would be a good tracing library for this?
cTrace is an good option.
NPTL sounds exactly like what you need. I have tried unsuccessfully to install it, though, and it seems dated a bit but the features are great. If you succeed in installing it, drop me a line through here! There is also PAPI, but it's tough to handle, and there's finally Valgrind (particularly Cachegrind) for certain subset of debugging needs. Hope this helps.
精彩评论