File->Reload CMake takes twice as long with 2016.1 than 1.2.2

Is there something, maybe configuration wise, that I can do about that?

Running cmake on the command line takes about 1 second. Reloading in 1.2.2 takes consistently less than 30 seconds. Reloading in 2016.1 takes consistently over 1 minute. For both versions I reloaded several times.

8 comments

Hi, Olof!

Thank you for report. Could use please perform reload once again in each version, now with the same CMake from 1.2.2 in both CLion versions (it can be specified in File | Settings | Build, Execution, Deployment | Toolchains | CMake executable) and send logs from both runs to us (Help | Show Log)? You can submit it here.

0

Is there some way I can send you information privately?

0

This is with 2016.1 using 3.3.2 cmake from CLion 1.2.2

2016-04-14 13:16:42,924 [5730385] INFO - #com.jetbrains.cidr.cpp - CMake whole generation took 7 seconds
2016-04-14 13:16:48,543 [5736004] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2016-04-14 13:16:49,890 [5737351] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 1 s.
2016-04-14 13:17:55,223 [5802684] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 65 s.
2016-04-14 13:17:55,254 [5802715] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.

The below is 2016.1 with bundled Cmake

2016-04-14 10:21:38,510 [ 329644] INFO - #com.jetbrains.cidr.cpp - CMake whole generation took 7 seconds
2016-04-14 10:21:44,274 [ 335408] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2016-04-14 10:21:45,627 [ 336761] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 1 s.
2016-04-14 10:22:44,933 [ 396067] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 59 s.
2016-04-14 10:22:44,947 [ 396081] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.

The below is with 1.2.2 with bundled Cmake

2016-04-14 10:11:52,728 [ 198803] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
2016-04-14 10:11:54,618 [ 200693] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2016-04-14 10:11:55,532 [ 201607] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.
2016-04-14 10:12:53,009 [ 259084] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 57 s.
2016-04-14 10:12:53,085 [ 259160] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.

Interestingly, the numbers are the same when looking in the log.

However, when I time it in the GUI, the building of symbols finishes much quicker for 1.2.2. Is the time measured under Building Symbols in the log different from the time until the GUI reports it is done with building symbols? And did it switch between 1.2.2 and 2016.1?

0

Thank you! I created the issue CPP-6456 and subscribed you as watcher. Could you please take CPU snapshots from both runs (Tools | Start CPU Snapshot) and attach it to issue if they are about 10 MB or upload to our FTP server: ftp://ftp.intellij.net/.uploads/ (anonymous login, .uploads directory has no permissions to list/download files, only for upload, so that other users will not be able to download your snapshots). For more information please visit this page.

0

Thank you.

Regarding CPU snapshots. Thats something I'm unable to do due to them containing too much proprietary information, even if others can't see them.

0

There should be no information regarding your code. You can install YourKit profiler and open collected snapshots to make sure of that (that is how we basically work with them). I'm afraid without snapshot we couldn't investigate your problem.

0

I have tried this before and the logs contain file names for my source code.

I understand that you might not be able to investigate without the snapshot but unfortunately I just can't send it.

Thank you anyway. I really liked your suggestion of trying with an older cmake version.

0

OK, I'll close ticket then, feel free to leave comments if you able to provide additional information.

0

Please sign in to leave a comment.