<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://docs.yate.ro/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Using_kcachegrind_to_debug_javascript_scripts</id>
		<title>Using kcachegrind to debug javascript scripts - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Using_kcachegrind_to_debug_javascript_scripts"/>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Using_kcachegrind_to_debug_javascript_scripts&amp;action=history"/>
		<updated>2026-05-18T03:43:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Using_kcachegrind_to_debug_javascript_scripts&amp;diff=7920&amp;oldid=prev</id>
		<title>Monica: /* Running cachegrind */</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Using_kcachegrind_to_debug_javascript_scripts&amp;diff=7920&amp;oldid=prev"/>
				<updated>2016-06-07T14:02:40Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Running cachegrind&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:02, 7 June 2016&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; kcachegrind cachegrind.out.filename&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; kcachegrind cachegrind.out.filename&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Note! kcachegrind is a GUI so if you are using ssh &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to &lt;/del&gt;to connect to that server, disconnect and reconnect with &amp;quot;ssh -X&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Note! kcachegrind is a GUI so if you are using ssh to connect to that server, disconnect and reconnect with &amp;quot;ssh -X&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Monica</name></author>	</entry>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Using_kcachegrind_to_debug_javascript_scripts&amp;diff=7919&amp;oldid=prev</id>
		<title>Monica: Created page with &quot;If you notice that your scripts take a lot of time to handle specific requests(messages) it might be time for a little profiling. You can use kchachegrind for this.  == Config...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Using_kcachegrind_to_debug_javascript_scripts&amp;diff=7919&amp;oldid=prev"/>
				<updated>2016-06-07T14:02:18Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;If you notice that your scripts take a lot of time to handle specific requests(messages) it might be time for a little profiling. You can use kchachegrind for this.  == Config...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you notice that your scripts take a lot of time to handle specific requests(messages) it might be time for a little profiling.&lt;br /&gt;
You can use kchachegrind for this.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
javascript.conf&lt;br /&gt;
 [general]&lt;br /&gt;
 allow_trace=yes&lt;br /&gt;
&lt;br /&gt;
== In code ==&lt;br /&gt;
&lt;br /&gt;
At the start of the main js file add:&lt;br /&gt;
 #pragma trace &amp;quot;cachegrind.out.filename&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Make sure you don't add this in any of the included files&lt;br /&gt;
&lt;br /&gt;
== Run test in yate ==&lt;br /&gt;
&lt;br /&gt;
Start Yate, make the test you wanted and then stop Yate. After stopping you will find a file called &amp;quot;cachegrind.out.filename&amp;quot; in the directory where yate was started from.&lt;br /&gt;
&lt;br /&gt;
== Running cachegrind ==&lt;br /&gt;
&lt;br /&gt;
The command to use kcachegrind:&lt;br /&gt;
 kcachegrind cachegrind.out.filename&lt;br /&gt;
&lt;br /&gt;
 Note! kcachegrind is a GUI so if you are using ssh to to connect to that server, disconnect and reconnect with &amp;quot;ssh -X&amp;quot;&lt;/div&gt;</summary>
		<author><name>Monica</name></author>	</entry>

	</feed>