<div dir="ltr">I see kbuildsycoca5 takes seconds on linux. Minutes on OS X, similar output on the terminal on both though. A good profiler would help to see what it's doing. (or I can look at the code itself and add some debug information). Does anyone on this list know of a good profiler for osx?<div><br></div><div>In answer to your other thread about kmahjongg, running it on linux/kf5 it's pretty snappy to save a game on linux, I bet it's because I already have kded5 and such running though.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 1:50 PM, Marko Käning <span dir="ltr"><<a href="mailto:mk-lists@email.de" target="_blank">mk-lists@email.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jeremy,<br>
<br>
I - right away - coming back to your offer to look into the daemon/services stuff. :)<br>
<br>
I had a chat with Ben a few days ago, since my kbuildsycoca5 suddenly needs a _long_<br>
time to run on the OSX/CI system.<br>
<br>
Test-runs I do these days using my run.sh script [1], which ensures that (hopefully all)<br>
necessary files are found by any project installed and running on my OSX/CI system. But<br>
I suspect this assumption is not yet fully true, as there are still some problems with<br>
certain files (themes, icon, etc.).<br>
If the respective *.env file doesn’t exist from a previous run, this script makes<br>
sure it gets created.<br>
<br>
<br>
<br>
E.g. for kanagram I see this:<br>
------------------------------------------------------------------------------------------<br>
$ ./run.sh kde/kdeedu kanagram<br>
Creating environment as 'kanagram.env' ...<br>
Environment variables set by kanagram:<br>
export CMAKE_PREFIX_PATH<br>
export KDEDIRS<br>
export PKG_CONFIG_PATH<br>
export XDG_DATA_DIRS<br>
export DYLD_LIBRARY_PATH<br>
---<br>
Calling kbuildsycoca5 every time is with ~ 1 minute far too slow atm (this wasn't the case before, I believe!)<br>
---<br>
Could not find drkonqi at /opt/kde/install/darwin/mavericks/clang/kf5-qt5/frameworks/kcrash/inst/lib/libexec/drkonqi<br>
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/folders/xd/_025xt7j6dggsjd0_6tczq180000gn/T/runtime-marko'<br>
kbuildsycoca5 running...<br>
kf5.kservice.sycoca: Trying to open ksycoca from "/Users/marko/Library/Caches/ksycoca5"<br>
Recreating ksycoca file ("/Users/marko/Library/Caches/ksycoca5", version 300)<br>
Menu "applications-kmenuedit.menu" not found.<br>
Saving<br>
Emitting notifyDatabaseChanged ("services", "servicetypes", "xdgdata-mime", "apps")<br>
<br>
real 1m10.382s<br>
user 0m8.920s<br>
sys 0m19.882s<br>
---<br>
Could not find drkonqi at /opt/kde/install/darwin/mavericks/clang/kf5-qt5/frameworks/kcrash/inst/lib/libexec/drkonqi<br>
Checking path "/opt/kde/install/darwin/mavericks/clang/kf5-qt5/kde/kdeedu/kdeedu-data/inst/share/apps/kvtml" for kvtml files<br>
HunspellClient::HunspellClient<br>
No language dictionaries for the language: "en"<br>
org.kde.kanagram: Created game and engine helper<br>
org.kde.kanagram: Set all context properties<br>
org.kde.kanagram: Setup declarative engine<br>
libpng warning: iCCP: known incorrect sRGB profile<br>
libpng warning: iCCP: known incorrect sRGB profile<br>
libpng warning: iCCP: known incorrect sRGB profile<br>
libpng warning: iCCP: too many profiles<br>
libpng warning: iCCP: known incorrect sRGB profile<br>
libpng warning: iCCP: known incorrect sRGB profile<br>
org.kde.kanagram: Set qml file location<br>
------------------------------------------------------------------------------------------<br>
<br>
<br>
<br>
I inserted a “time” before kbuildsycoca5 above and measure more than a _minute_ usually for<br>
the time needed to run it once. Ben verified for me that this is very unusual and the big<br>
question is where the program spends its time.<br>
<br>
As I have pointed out in [2] also kded5 spends a hell of a time (20 min) in walking OSX'<br>
file system below /Applications. It needs so much time in there since it searches through<br>
every application package installed in there. This takes very much time for the developer<br>
tools in Xcode.app…<br>
I suggested to make kded5 more intelligent and simply SKIP entering all the app packages<br>
in these searches, but there was no response to that.<br>
Was that suggestion nonsensical?<br>
<br>
I suspect that kbuildsycoca5 is hit by just the same issue here!!! :-/<br>
<br>
Do you see something similar on your end?<br>
<br>
Well, and since I don’t want to run kded5 for 20 mins just to be able to test-run some<br>
KF5 application I have to live with that some apps call kbuildsycoca5 when I call for<br>
certain actions which involve access to the file system or whatever...<br>
<br>
Please read [2], as this is a nice example of the trouble found on OSX wrt KF5.<br>
<br>
Greets,<br>
Marko<br>
<br>
<br>
<br>
[1] <a href="http://quickgit.kde.org/?p=clones%2Fwebsites%2Fbuild-kde-org%2Fkaning%2Fmp-osx-ci.git&a=blob&h=fe9bc2d0502492032278c66bbd60773e7a548d5b&hb=e7822a0f8cf12a50f678d957abcba84b65216df0&f=run.sh" target="_blank">http://quickgit.kde.org/?p=clones%2Fwebsites%2Fbuild-kde-org%2Fkaning%2Fmp-osx-ci.git&a=blob&h=fe9bc2d0502492032278c66bbd60773e7a548d5b&hb=e7822a0f8cf12a50f678d957abcba84b65216df0&f=run.sh</a><br>
<br>
[2] <a href="http://mail.kde.org/pipermail/kde-mac/2015-January/003150.html" target="_blank">http://mail.kde.org/pipermail/kde-mac/2015-January/003150.html</a></blockquote></div><br></div>