Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating trace files #294

Open
AnonimiAngels opened this issue Jan 8, 2025 · 3 comments
Open

Generating trace files #294

AnonimiAngels opened this issue Jan 8, 2025 · 3 comments

Comments

@AnonimiAngels
Copy link

How can i generate the trace files on linux in a c++ program?

@MatthewKhouzam
Copy link
Collaborator

Hi! There are many tools that can help. What do you want to trace?

Simplest is to use uftrace. You can also use LTTng-UST, lttng-kernel allows knowing what happened on the OS level. You could use perf with ctf bindings and intelpt if you have some difficult requirements. Really the core of the question is what do you want to trace, what do you want to visualize?

@AnonimiAngels
Copy link
Author

Hi! There are many tools that can help. What do you want to trace?

Simplest is to use uftrace. You can also use LTTng-UST, lttng-kernel allows knowing what happened on the OS level. You could use perf with ctf bindings and intelpt if you have some difficult requirements. Really the core of the question is what do you want to trace, what do you want to visualize?

The flamegraph of all the functions inside my program

@MatthewKhouzam
Copy link
Collaborator

UFTrace, custom tracer, such as uprofiler or microprofiler or lttng-ust are your best bets, keep us informed on how it's going!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants