https://bugs.kde.org/show_bug.cgi?id=369374

--- Comment #1 from Milian Wolff <m...@milianw.de> ---
The short living threads are used by libclang for crash resilience. You can
verify whether that really is the problem by temporarily disabling that
feature. For that, you will need to recompile KDevelop though, and add a call
to `clang_toggleCrashRecovery(false)`, e.g. in
`kdevelop/language/clang/duchain/clangindex.cpp`, before the call to
`clang_CXIndex_setGlobalOptions`.

That said, I doubt that this is the reason for the high CPU usage. Could you
please use a profiler to get some hard data?

- install debug symbols for kdevelop + kdevplatform
- profile CPU with perf:

perf record --call-graph dwarf --pid $(pidof kdevelop)
# wait a couple of seconds while kdevelop has high CPU usage
# ^C -> this stops the record and writes a `perf.data` file

then run

perf report --no-children -g graph | bzip2 > perf.report.bz2

and upload the report here.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to