<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sgt. Conker &#187; Garbage</title>
	<atom:link href="http://www.sgtconker.com/tag/garbage/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sgtconker.com</link>
	<description>We are &#34;absolutely fine&#34;</description>
	<lastBuildDate>Wed, 06 Jul 2011 13:29:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Scrolls from the past: Profiling</title>
		<link>http://www.sgtconker.com/2009/11/scrolls-from-the-past-profiling/</link>
		<comments>http://www.sgtconker.com/2009/11/scrolls-from-the-past-profiling/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 09:00:28 +0000</pubDate>
		<dc:creator>Captain ZSquare</dc:creator>
				<category><![CDATA[Scrolls from the past]]></category>
		<category><![CDATA[XNA]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Garbage]]></category>
		<category><![CDATA[Profiling]]></category>

		<guid isPermaLink="false">http://www.sgtconker.com/?p=421</guid>
		<description><![CDATA[Because sometimes old things never gets old, and valuable knowledge gets lost with the passing of time, it is best to bring it back to attention, so that young generations can benefit from those that came before them. This week, we'll unearth a couple of scrolls talking about profiling your XNA games.
Let's start with the [...]]]></description>
			<content:encoded><![CDATA[<p>Because sometimes old things never gets old, and valuable knowledge gets lost with the passing of time, it is best to bring it back to attention, so that young generations can benefit from those that came before them. This week, we'll unearth a couple of scrolls talking about <em>profiling your XNA games</em>.</p>
<p>Let's start with the spring of 2007 (Year 1 of the Age of XNA). As brave programmers started using XNA, they started to worry about the effects that this new form of magic would have on their surroundings, which had to be kept free of residual energies (a.k.a. <em>garbage</em>). People were most worried about the <em>foreach </em>spell, rumored to generate such energies. Thus, the mighty wizard Eli looked into the problem, and wrote two scrolls on how the <em>foreach </em>spell is better used, but most importantly, he left us notes on how to investigate such problems ourselves, through a ritual called <em>memory profiling</em>, using the <em>CLR Profiler</em>, and the <em>XNA Framework Remote Performance Monitor for Xbox 360.</em> These two scrolls can be found and read in Eli's book <a href="http://blogs.msdn.com/etayrien/archive/2007/03/17/foreach-garbage-and-the-clr-profiler.aspx">here </a>and <a href="http://blogs.msdn.com/etayrien/archive/2007/04/19/foreach-and-garbage-part-2.aspx">here</a>.</p>
<p>At the same time, another XNA apprentice wrote about a related ritual called <em>CPU profiling</em>, through which other XNA apprentices could learn why their creations were slow, and lazy, by using a tool called <em>NProf</em>. Those that want to can still read <span><span>Thomas Aylesworth's writings <a href="http://swampthingtom.blogspot.com/2007/04/software-efficiency-and-optimization.html">here</a>.</span></span></p>
<p><span><span>Over a year later,</span></span> bittermanandy was writing a chronicle about what recipes and rituals he found most useful in his delvings into XNA, and in one of these chronicles, he touched on the subject of the <em>CLR Profiler</em> <a href="http://bittermanandy.wordpress.com/2008/08/20/tools-of-the-trade-part-three-clrprofiler/">again</a>. That same year, jwatte gave away a <a href="http://www.enchantedage.com/xna-profiler">free potion</a> that could be used for performing the profiling ritual in the kingdom of the Xbox 360, which was not possible using NProf. MJP made a comparison between <em>events</em> and <em>virtual functions</em>, using the <em>Stopwatch</em> spell, and left his writing for all to read in <a href="http://mynameismjp.wordpress.com/2009/01/23/profiling-events/">one of his scrolls</a>.</p>
<p>More recently, in Year 3 of the Age of XNA, the Grand Master Wizard Shawn, reminded all of us how important is that <a href="http://blogs.msdn.com/shawnhar/archive/2009/07/06/why-measure-when-you-can-guess.aspx">we use the profiling rituals</a> as often as possible, and gave us an example of using the blunt yet powerful spell <a href="http://blogs.msdn.com/shawnhar/archive/2009/07/07/profiling-with-stopwatch.aspx">Stopwatch</a>.</p>
<p>We hope you liked our return to past scrolls of wisdom, and found something of help in them. Please let us know what you think, and leave a note in the notebook below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sgtconker.com/2009/11/scrolls-from-the-past-profiling/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

