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

Gprof and Gcov profilers don't work for cmake4eclipse-driven projects #206

Open
akamensh opened this issue Sep 28, 2024 · 2 comments
Open

Comments

@akamensh
Copy link

Describe the bug
Gprof and Gcov profilers don't work for cmake4eclipse-driven projects - see the attached screenshots.

To Reproduce
Steps to reproduce the behaviour:

  1. Open a cmake4eclipse-driven project or create any simple one.
  2. Set any working "Launch Configuration"; when editing the configuration, choose Gprof or Gcov on the "Profiler" tab.
  3. Set a "Launch Mode" to "Profile" and launch.
  4. See error.

Expected behaviour
Gprof and Gcov profilers should be launching when requested by user, on "Launch in 'Profile' mode" control in Eclipse"

Screenshots
These are for the case of Gcov - they are almost the same for a case of Gprof:
Screenshot from 2024-09-26 23-24-10
Screenshot from 2024-09-26 23-24-27
Screenshot from 2024-09-26 23-24-47

Useful Information

  • cmake4eclipse version: 5.0.0
  • CDT version: 2024-09 (4.33.0)
  • Which OS do you use: Linux (Debian 12)
  • CMake version: 3.25.1

What is in Eclipse's Error Log?
See the errors in the attached screenshots.

Additional context
Setting the compiler/linker flags for gprof/gcov in CMakeLists.txt or in "Cmake4eclipse Build"/"CMake Options" window of the Project's Properties doesn't solve the problem.

@15knots
Copy link
Owner

15knots commented Sep 29, 2024

Describe the bug Gprof and Gcov profilers don't work for cmake4eclipse-driven projects - see the attached screenshots.

To Reproduce Steps to reproduce the behaviour:

1. Open a cmake4eclipse-driven project or create any simple one.

2. Set any working "Launch Configuration"; when editing the configuration, choose Gprof or Gcov on the "Profiler" tab.

Sorry, I do not see any "Launch Configuration" tab or similar in the project's settings. Can you provide a screenshot?

@akamensh
Copy link
Author

I mean controls in the workspace window:

Screenshot from 2024-09-29 20-22-48
Screenshot from 2024-09-29 20-25-15

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