https://wiki.dlang.org/?title=Perf&feed=atom&action=history
Perf - Revision history
2024-03-29T09:17:00Z
Revision history for this page on the wiki
MediaWiki 1.31.2
https://wiki.dlang.org/?title=Perf&diff=5091&oldid=prev
O3o at 10:16, 14 November 2014
2014-11-14T10:16:20Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 10:16, 14 November 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l10" >Line 10:</td>
<td colspan="2" class="diff-lineno">Line 10:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># After a few seconds of recording, kill perf with Ctrl+C</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># After a few seconds of recording, kill perf with Ctrl+C</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># Run '''perf report'''. The report should clearly identify which functions are being executed in the loop.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># Run '''perf report'''. The report should clearly identify which functions are being executed in the loop.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:HowTo]]</ins></div></td></tr>
</table>
O3o
https://wiki.dlang.org/?title=Perf&diff=4142&oldid=prev
Hackerpilot at 20:16, 27 May 2014
2014-05-27T20:16:40Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 20:16, 27 May 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">=Perf=</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[https://perf.wiki.kernel.org/index.php/Main_Page Perf] is a performance measurement tool for the Linux kernel.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[https://perf.wiki.kernel.org/index.php/Main_Page Perf] is a performance measurement tool for the Linux kernel.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
Hackerpilot
https://wiki.dlang.org/?title=Perf&diff=4141&oldid=prev
Hackerpilot: Created page with "=Perf= [https://perf.wiki.kernel.org/index.php/Main_Page Perf] is a performance measurement tool for the Linux kernel. ==Finding Infinite Loops== '''Problem:'''<br/> Your pr..."
2014-05-27T20:16:19Z
<p>Created page with "=Perf= [https://perf.wiki.kernel.org/index.php/Main_Page Perf] is a performance measurement tool for the Linux kernel. ==Finding Infinite Loops== '''Problem:'''<br/> Your pr..."</p>
<p><b>New page</b></p><div>=Perf=<br />
[https://perf.wiki.kernel.org/index.php/Main_Page Perf] is a performance measurement tool for the Linux kernel.<br />
<br />
<br />
==Finding Infinite Loops==<br />
'''Problem:'''<br/><br />
Your program is in an infinite loop. You're not sure how you triggered it, and worry that if you kill the program you may not be able to trigger this bug easily. You want to know where the infinite loop is.<br />
<br />
'''Solution:'''<br />
# Use the '''-p''' option of '''perf record''', supplying the process id of your program. This will instruct perf to attach to your currently-running process. <br/><code>perf record -p $(pidof ''myprogram'')</code><br />
# After a few seconds of recording, kill perf with Ctrl+C<br />
# Run '''perf report'''. The report should clearly identify which functions are being executed in the loop.</div>
Hackerpilot