<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Checking mochitest test coverage へのコメント</title>
	<atom:link href="http://mitcho.com/blog/projects/checking-mochitest-test-coverage/feed/" rel="self" type="application/rss+xml" />
	<link>http://mitcho.com/blog/projects/checking-mochitest-test-coverage/</link>
	<description></description>
	<lastBuildDate>Thu, 31 May 2012 06:07:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Philipp von Weitershausen より</title>
		<link>http://mitcho.com/blog/projects/checking-mochitest-test-coverage/comment-page-1/#comment-3933</link>
		<dc:creator>Philipp von Weitershausen</dc:creator>
		<pubDate>Wed, 23 Mar 2011 03:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://mitcho.com/?p=4253#comment-3933</guid>
		<description><![CDATA[&lt;p&gt;Wow, I&#039;m happy you were able to use my code so smoothly. This is awesome, I think I&#039;ll be using this patch to mochitests in our upcoming projects :D &lt;em&gt;OMG THIS OPEN SOURCE THING WORKS&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On a side note, I&#039;m still working on a general way of instrumenting SpiderMonkey to provide us with coverage. Since the approach here doesn&#039;t work with xpcshell-tests (there&#039;ll always be JS on the stack), we need a generic solution anyway.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Wow, I&#8217;m happy you were able to use my code so smoothly. This is awesome, I think I&#8217;ll be using this patch to mochitests in our upcoming projects <img src='http://mitcho.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  <em>OMG THIS OPEN SOURCE THING WORKS</em></p>

<p>On a side note, I&#8217;m still working on a general way of instrumenting SpiderMonkey to provide us with coverage. Since the approach here doesn&#8217;t work with xpcshell-tests (there&#8217;ll always be JS on the stack), we need a generic solution anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>sfink より</title>
		<link>http://mitcho.com/blog/projects/checking-mochitest-test-coverage/comment-page-1/#comment-3931</link>
		<dc:creator>sfink</dc:creator>
		<pubDate>Wed, 23 Mar 2011 01:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://mitcho.com/?p=4253#comment-3931</guid>
		<description><![CDATA[&lt;p&gt;The instrumentation in https://bugzilla.mozilla.org/show_bug.cgi?id=637393 might help with the speed problem, though it&#039;s not done yet and the output format isn&#039;t really what you want. It accumulates the execution count for every opcode, broken down by which engine executed it (interpreter vs tracejit vs methodjit). The interruptHook disables the tracing JIT and is expensive besides; this instrumentation slows down all execution but doesn&#039;t disable anything and should be much less overhead overall. (interruptHook is doing a full function call per op; bug 637393 executes a couple of additional machine code instructions per op.)&lt;/p&gt;

&lt;p&gt;The patch dumps out a disassembly of every JSScript (function or toplevel) on JSContext teardown, together with per-op execution counts &lt;em&gt;and line numbers&lt;/em&gt;. So you could massage that into a coverage report. (Sum of all ops executed in a line &gt; 0?) Or maybe better, dump out your own condensed report, though that&#039;ll require trawling through src notes which isn&#039;t all that fun.&lt;/p&gt;

&lt;p&gt;I&#039;ve never tried it on a full browser build. You&#039;d need to arrange for the JSOPTION_PCPROFILE bit to be set on all contexts you care about.&lt;/p&gt;

&lt;p&gt;It&#039;s probably not baked enough to use for this yet, but any comments/suggestions in the bug will be taken seriously. (Or if you want to take it over, go ahead!)&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>The instrumentation in <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=637393" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=637393</a> might help with the speed problem, though it&#8217;s not done yet and the output format isn&#8217;t really what you want. It accumulates the execution count for every opcode, broken down by which engine executed it (interpreter vs tracejit vs methodjit). The interruptHook disables the tracing JIT and is expensive besides; this instrumentation slows down all execution but doesn&#8217;t disable anything and should be much less overhead overall. (interruptHook is doing a full function call per op; bug 637393 executes a couple of additional machine code instructions per op.)</p>

<p>The patch dumps out a disassembly of every JSScript (function or toplevel) on JSContext teardown, together with per-op execution counts <em>and line numbers</em>. So you could massage that into a coverage report. (Sum of all ops executed in a line &gt; 0?) Or maybe better, dump out your own condensed report, though that&#8217;ll require trawling through src notes which isn&#8217;t all that fun.</p>

<p>I&#8217;ve never tried it on a full browser build. You&#8217;d need to arrange for the JSOPTION_PCPROFILE bit to be set on all contexts you care about.</p>

<p>It&#8217;s probably not baked enough to use for this yet, but any comments/suggestions in the bug will be taken seriously. (Or if you want to take it over, go ahead!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
