uftrace | Function graph tracer for C/C++/Rust/Python | Monitoring library
kandi X-RAY | uftrace Summary
kandi X-RAY | uftrace Summary
The uftrace tool is to trace and analyze execution of a program written in C/C++. It was heavily inspired by the ftrace framework of the Linux kernel (especially function graph tracer) and supports userspace programs. It supports various kind of commands and filters to help analysis of the program execution and performance.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of uftrace
uftrace Key Features
uftrace Examples and Code Snippets
Community Discussions
Trending Discussions on uftrace
QUESTION
I'm having a hard time debugging this issue: https://github.com/cnjinhao/nana/issues/445
I have previously asked about LTO vs static object initialization and edited the library's code to implement Meyer's singletons so that the correct order of initialization happens. Hello worlds still crash, although library's functions have mostly dissappeared from stack traces:
...ANSWER
Answered 2019-Aug-03 at 16:13The cause of the crash was that the nana library had -static-libgcc -static-libstdc++
in its CMake files as public dependency. The executable and all other libraries had them linked dynamically. Suprisingly, there were no symbol clashes but the standard library code in the executable was corrupted.
Solved by removing these flags from nana's CMake files.
QUESTION
I am trying uftrace to profile the following simple C++
program:
ANSWER
Answered 2017-Apr-11 at 12:05uftrace
used to remove some prefix in symbol demangler but it may confuse some users so I submitted a patch to keep it and it's merged now -
https://github.com/namhyung/uftrace/pull/87
So if you update uftrace
to the current master. You will see the first main()
is now _GLOBAL__sub_I_main()
.
Thanks for your feedback!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install uftrace
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page