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

Can this profiler be used for C? #216

Closed
ASAADASKAR opened this issue Nov 8, 2024 · 3 comments
Closed

Can this profiler be used for C? #216

ASAADASKAR opened this issue Nov 8, 2024 · 3 comments

Comments

@ASAADASKAR
Copy link

Hello to all,
I would like to ask two questions here, and I look forward to answers.

I want to use this profiler not only for C++ projects, but also for C projects, is that possible with this profiler?

Is there also a way to use the profiler for low versions, like (C++03)?

@mariuszmaximus
Copy link

C != C++
you need to look for another profiler

@ASAADASKAR
Copy link
Author

ASAADASKAR commented Nov 8, 2024

@mariuszmaximus THX for answer.
Maybe we can use the profiler for C via a C-compatible interface or is it not possible?

Do you have an answer to this question, 'Is there also a way to use the profiler for low versions, like (C++03)'?

@yse
Copy link
Owner

yse commented Nov 29, 2024

@ASAADASKAR

Is there also a way to use the profiler for low versions, like (C++03)

Unfortunately, the profiler.h header is built using C++11 features, making it incompatible with C++03 and earlier standards. Backporting it to C++03 would require significant changes, such as replacing modern C++ constructs (e.g., std::chrono, std::thread, or auto) with alternatives available in C++03.

@yse yse closed this as completed Nov 29, 2024
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

3 participants