Missing profiler option (Linux)

Answered

Hi there,

I want to use a profiler in CLion to get some performance statistics about my code. But I noticed that there is no option to run a profiler. I know it should be there, as I have used it a lot while I was coding on a Mac. But on my Linux Laptop I just can't find it.

I followed this tutorial: https://www.jetbrains.com/help/clion/cpu-profiler.html but that did not solve my issues.

Any idea what I'm missing?

12 comments
Comment actions Permalink

Hello!

What CLion version do you use (Help | About CLion)? Is the Perf tool installed on your machine? What OS exactly do you have?

0
Comment actions Permalink

I'm using CLion 2022.1.1 on Fedora 36. Yes, I installed the perf utility.

0
Comment actions Permalink

Do you have the `Run | Profile` in the main menu?

0
Comment actions Permalink

No I don't have this options. Also the profile seetings page in Build, Exec., Deployment -> Dynamic Analysis Tools is missing.

0
Comment actions Permalink

Do you work with a CMake project?

0
Comment actions Permalink

Btw., thanks for your fast replies :)

0
Comment actions Permalink

Do you have the "disabled_plugins.txt" file in `~/.config/JetBrains/CLion2022.1`? If yes, please show its content.

0
Comment actions Permalink

Yes, I've disabled some Plugins. Here's the file:

Docker
HtmlTools
JSIntentionPowerPack
JavaScript
JavaScriptDebugger
PerforceDirectPlugin
PythonCore
Subversion
XPathView
com.intellij.clion.embedded
com.intellij.copyright
com.intellij.css
com.intellij.database
com.intellij.diagram
com.intellij.plugins.all_hallows_eve.colorscheme
com.intellij.plugins.blackboard.colorscheme
com.intellij.plugins.cidr.solarized.colorscheme
com.intellij.plugins.cobalt.colorscheme
com.intellij.plugins.dawm.colorscheme
com.intellij.plugins.eclipsekeymap
com.intellij.plugins.espresso.colorscheme
com.intellij.plugins.github.colorscheme
com.intellij.plugins.monokai.colorscheme
com.intellij.plugins.netbeanskeymap
com.intellij.plugins.qtcreatorkeymap
com.intellij.plugins.rails_casts.colorscheme
com.intellij.plugins.resharperkeymap
com.intellij.plugins.twilight.colorscheme
com.intellij.plugins.vibrantink.colorscheme
com.intellij.plugins.visualstudiokeymap
com.intellij.plugins.warmneon.colorscheme
com.intellij.plugins.xcode.colorscheme
com.intellij.plugins.xcodekeymap
com.intellij.tasks.timeTracking
com.jetbrains.changeReminder
com.jetbrains.clion.plugins.webDeployment
com.jetbrains.codeWithMe
com.jetbrains.gateway
com.jetbrains.plugins.webDeployment
com.jetbrains.restClient
hg4idea
org.jetbrains.plugins.clion.ctest
org.jetbrains.plugins.clion.test.boost
org.jetbrains.plugins.clion.test.catch
org.jetbrains.plugins.clion.test.doctest
org.jetbrains.plugins.less
org.jetbrains.plugins.sass
org.jetbrains.plugins.stylus
org.jetbrains.settingsRepository
org.toml.lang
tslint

0
Comment actions Permalink

Please do Help | Collect Logs and Diagnostic Data and send the resulted archive to clion-support at jetbrains.com. Note that logs might contain private user's information (like file paths and names).

1
Comment actions Permalink

Update: it seems to be https://youtrack.jetbrains.com/issue/CPP-29340. As a workaround for now, please enable the Copyright plugin, it should help.

Feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

 

0
Comment actions Permalink

Enabling the copyright plugin indeed fixed the issue. Thanks a lot!

0

Please sign in to leave a comment.