<?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>DelphiTools.info &#187; Reproducibility</title>
	<atom:link href="http://delphitools.info/tag/reproducibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://delphitools.info</link>
	<description>SamplingProfiler, DWS and other Delphi tools</description>
	<lastBuildDate>Thu, 02 Feb 2012 11:33:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Control sampling from your code</title>
		<link>http://delphitools.info/2009/03/02/control-sampling-from-your-code/</link>
		<comments>http://delphitools.info/2009/03/02/control-sampling-from-your-code/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 10:07:23 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[OutputDebugString]]></category>
		<category><![CDATA[Profiler]]></category>
		<category><![CDATA[Reproducibility]]></category>
		<category><![CDATA[threadID]]></category>

		<guid isPermaLink="false">http://delphitools.info/?p=54</guid>
		<description><![CDATA[One issue when trying to profile a &#8220;live&#8221; application is that you may be getting a lot of noise, resulting from a particular library or section of code being executed from multiple contexts. You may also be after profiling only one particular case, and want some reproducibility between runs&#8230; in short: you want a finer [...]]]></description>
			<content:encoded><![CDATA[<p>One issue when trying to profile a &#8220;live&#8221; application is that you may be getting a lot of noise, resulting from a particular library or section of code being executed from multiple contexts. You may also be after profiling only one particular case, and want some reproducibility between runs&#8230; in short: you want a finer grained control on when or for what the profiling will take place.</p>
<p>In those cases, you can control SamplingProfiler&#8217;s samples collection from your code with the following:</p>
<pre style="padding-left: 30px;">OutputDebugString('SAMPLING ON');
 ...whatever needs to be profiled...
 OutputDebugString('SAMPLING OFF');</pre>
<p>Those calls to OutputDebugString() are understood as commands to turn sampling ON or OFF. Usually you&#8217;ll want to use this in conjunction with the &#8220;Start sampling on command only&#8221; option, but it can also be used in reverse to &#8220;pause&#8221; sample collection. OutputDebugString() is declared in the Windows.pas unit.</p>
<p>As of version 1.5.2, another command that is accepted via OutputDebugString() is &#8216;SAMPLING THREAD threadID&#8217;, which is used to define from which threadID samples must be collected. This is useful when you want to profile a particular thread in multi-threaded application&#8230; but that&#8217;s another can o&#8217;worms for another day!</p>
]]></content:encoded>
			<wfw:commentRss>http://delphitools.info/2009/03/02/control-sampling-from-your-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.delphitools.info/tag/reproducibility/feed/ ) in 0.80211 seconds, on Feb 4th, 2012 at 1:50 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 1:50 pm UTC -->
