<table><tr><td style="">rjvbb updated this revision to Diff 21799.<br />rjvbb added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8579" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Uses ProjectController::addProject(). That requires adding the AFMP benchmark class as a friend to the ProjectController class (yuck?) as well as qobject_casting <tt style="background: #ebebeb; font-size: 13px;">m_core->projectController()</tt> as the method is not part of the iProjectController API.</p>

<p>I haven't yet seen evidence that this would add overhead from unwanted plugins (like the clang parser) but an unexpected positive side-effect is that dirwatching *deletion* timing can now be obtained.</p>

<p>I've added a check for the qobject_cast result with a printed warning and fallback to the direct signal emit I used before. Rationale: the cited concern that something could change in the future and that that would cause the benchmark to do something else silently.</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D8579?vs=21735&id=21799" rel="noreferrer">https://phabricator.kde.org/D8579?vs=21735&id=21799</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8579" rel="noreferrer">https://phabricator.kde.org/D8579</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/project/tests/abstractfilemanagerpluginimportbenchmark.cpp<br />
kdevplatform/shell/projectcontroller.h</div></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop<br /><strong>Cc: </strong>mwolff, kdevelop-devel, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>