<?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>Comments on: Profiling multi-threaded applications</title>
	<atom:link href="http://delphitools.info/2009/05/27/profiling-multi-threaded-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://delphitools.info/2009/05/27/profiling-multi-threaded-applications/</link>
	<description>SamplingProfiler, DWS and other Delphi tools</description>
	<lastBuildDate>Fri, 03 Feb 2012 09:15:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tommi Prami</title>
		<link>http://delphitools.info/2009/05/27/profiling-multi-threaded-applications/comment-page-1/#comment-669</link>
		<dc:creator>Tommi Prami</dc:creator>
		<pubDate>Fri, 19 Mar 2010 08:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://delphitools.info/?p=397#comment-669</guid>
		<description>Hello,

How unlucky one can be, when comes to trial and error :) I kind of managed to waste quite a lot of time to Thread ID base profiling to work, trivial, but sometimes you just try everything, and all those seem to be wrong. In case of some other also is as dumb is me, here is sample code:

  {$IFDEF PROFILEDEBUG}
  LProfilingStr         : string;
  {$ENDIF}
begin
  {$IFDEF PROFILEDEBUG}
  LProfilingStr := &#039;SAMPLING THREAD &#039;
    + IntToStr(GetCurrentThreadId) + #0;
  OutputDebugString(PChar(@LProfilingStr));
  {$ENDIF}

Most likely the #0 is unnecessary, but this is the first version that worked ;)

-TP-</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>How unlucky one can be, when comes to trial and error <img src='http://delphitools.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I kind of managed to waste quite a lot of time to Thread ID base profiling to work, trivial, but sometimes you just try everything, and all those seem to be wrong. In case of some other also is as dumb is me, here is sample code:</p>
<p>  {$IFDEF PROFILEDEBUG}<br />
  LProfilingStr         : string;<br />
  {$ENDIF}<br />
begin<br />
  {$IFDEF PROFILEDEBUG}<br />
  LProfilingStr := &#8216;SAMPLING THREAD &#8216;<br />
    + IntToStr(GetCurrentThreadId) + #0;<br />
  OutputDebugString(PChar(@LProfilingStr));<br />
  {$ENDIF}</p>
<p>Most likely the #0 is unnecessary, but this is the first version that worked <img src='http://delphitools.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>-TP-</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.delphitools.info/2009/05/27/profiling-multi-threaded-applications/feed/ ) in 0.73397 seconds, on Feb 4th, 2012 at 2:38 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 2:38 pm UTC -->
