<table><tr><td style="">jtamate updated this revision to Diff 33613.<br />jtamate edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-rbug4lzf6up72tk/">(Show Details)</a><br />jtamate 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/D12511">View Revision</a></tr></table><br /><div><div><p>Add and remove from the list.</p>
<p>About the tools I use to profile:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">I'm used to use slow machines, I have no problems running under valgrind.</li>
<li class="remarkup-list-item">When I can run a program and I'm able to repeat the workload that produces high cpu usage or slowness, I do like to use callgrind/kcachegrind, just because I get inclusive costs.</li>
<li class="remarkup-list-item">When a program gets slow after some time running or under some unexpected circumstances, yes I use perf, because I do not need to restart the program and I can do live measurements.</li>
<li class="remarkup-list-item">But I <strong>do love</strong> the kcachegrind view of the % of instructions for every method within the source code.</li>
</ul>
<p>In any case, the hotspot results pasting 10 times and undoing:<br />
Before: <a href="https://phabricator.kde.org/F5833105" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F5833105: kwrite_perf_before.png</a><br />
After: <a href="https://phabricator.kde.org/F5833106" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F5833106: kwrite_perf_after.png</a></p></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>Before: {F5821740} it used 65% of cpu <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">instructions </span>in Kate::TextBuffer::notifyAboutRangeChange<br />
After: {F5821746} it uses 19% of cpu <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">instructions </span>in in Kate::TextBuffer::notifyAboutRangeChange<br />
</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D12511?vs=33574&id=33613">https://phabricator.kde.org/D12511?vs=33574&id=33613</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12511">https://phabricator.kde.org/D12511</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/document/katedocument.cpp<br />
src/document/katedocument.h</div></div></div><br /><div><strong>To: </strong>jtamate, Kate, cullmann, mwolff<br /><strong>Cc: </strong>mwolff, cullmann, Frameworks, michaelh, kevinapavew, ngraham, bruns, demsking, sars, dhaumann<br /></div>