<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx</link><description>Posted by: Sue Loh 
 The History 
 If you read our blog regularly then you already know that CeLog is a data logging tool, which provides a lot of interesting system data because we've made the kernel log CeLog events for occurrences like thread switches</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Troubleshooting guide - part 2</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#9559273</link><pubDate>Tue, 21 Apr 2009 17:09:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9559273</guid><dc:creator>HoppeRx - the cure for your ailing device</dc:creator><description>&lt;p&gt;Below is the second half of a well executed document from guestRx: Bulent Elmaci. Bulent has worked with&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9559273" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#522266</link><pubDate>Wed, 01 Feb 2006 21:21:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:522266</guid><dc:creator>FrankW</dc:creator><description>Hi Sue,&lt;br/&gt;&lt;br/&gt;I have posted my results in the in &lt;br/&gt;&amp;quot;microsoft.public.windowsce.testtools&amp;quot; &lt;br/&gt;under the topic &lt;br/&gt;&amp;quot;re: CeLog + Monte Carlo = Perfalyzer&amp;quot;&lt;br/&gt;&lt;br/&gt;Frank&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=522266" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#522109</link><pubDate>Wed, 01 Feb 2006 20:04:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:522109</guid><dc:creator>ce_base</dc:creator><description>If you get &amp;quot;no records in input database&amp;quot; then it means there are no profiling events in the CeLog log file.  Possible sources of the problem:&lt;br/&gt;- It's not a profiling image (IMGPROFILER=1), or there's some problem with the OAL profiling implementation.  Try running the profiler in non-celog mode (&amp;quot;prof on&amp;quot; / &amp;quot;prof off&amp;quot; in the target control window).  Does that work?&lt;br/&gt;- The profiler didn't actually get started (Maybe some problem with how you're using pause/continue or passing 0-freq to continue?).  If you look at the .clg file with readlog, search for &amp;quot;profile&amp;quot; in the output to see if there are Monte Carlo start/stop events.  Does the profiler work if you remove the PROFILE_CELOG flag from your ProfileStart call?&lt;br/&gt;- Data is being lost or is not getting flushed to the log file.  If you look at the log file with kernel tracker or readlog does it look like the period of time you were profiling got into the log?&lt;br/&gt;&lt;br/&gt;It is tough to do in depth debugging through a blog, and fills up the comments area.  If you continue to have problems, let me suggest that you post your questions onto one of our newsgroups (like microsoft.public.windowsce.platbuilder) instead.&lt;br/&gt;&lt;br/&gt;Hope that helps,&lt;br/&gt;&lt;br/&gt;Sue&lt;br/&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=522109" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#522088</link><pubDate>Wed, 01 Feb 2006 19:46:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:522088</guid><dc:creator>FrankW</dc:creator><description>Hi Sue,&lt;br/&gt;&lt;br/&gt;I have tried this also with CeLogFlush and written the buffer contents into a file. See registry entry:&lt;br/&gt;[HKEY_LOCAL_MACHINE\System\CeLog]&lt;br/&gt;&amp;quot;Transport&amp;quot;=&amp;quot;LocalFile&amp;quot;&lt;br/&gt;&amp;quot;FileName&amp;quot;=&amp;quot;celog.clg&amp;quot;&lt;br/&gt;&lt;br/&gt;Same result:&lt;br/&gt;D:\WinCE420\release&amp;gt;perfalyzer.exe CeLog.clg&lt;br/&gt;Loading CE database API from cedb400.dll&lt;br/&gt;Loading symbols for celog.dll... 18 loaded.&lt;br/&gt;Loading symbols for lan91c111.dll... 94 loaded.&lt;br/&gt;Loading symbols for netui.dll... 706 loaded.&lt;br/&gt;...&lt;br/&gt;Failure looking up symbol 0x140126c8&lt;br/&gt;Failure looking up symbol 0x1e011cac&lt;br/&gt;Failure looking up symbol 0x1e011d78&lt;br/&gt;Kernel Profiler start 0x000001f4 0x00000060&lt;br/&gt;Kernel Profiler stop&lt;br/&gt;NOTE -- If this log contains more than one profiler run, you should use&lt;br/&gt;the &amp;quot;-splitlog&amp;quot; parameter to break it into a second log file.&lt;br/&gt;**** ProcessEvent failed!&lt;br/&gt;Generating overall module report...&lt;br/&gt;No records in input database!&lt;br/&gt;Count failure generating overall module report&lt;br/&gt;Done: See Perf\overall.htm for results.&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;If I load the log file into the kernel tracker it looks good. All symbols are resolved.&lt;br/&gt;&lt;br/&gt;To start the logging I use these API functions:&lt;br/&gt;ProfileStart( 500, PROFILE_CELOG | PROFILE_STARTPAUSED );&lt;br/&gt;ProfileStart( 0, PROFILE_CELOG | PROFILE_CONTINUE);&lt;br/&gt;ProfileStop();&lt;br/&gt;&lt;br/&gt;Frank&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=522088" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#522046</link><pubDate>Wed, 01 Feb 2006 19:14:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:522046</guid><dc:creator>ce_base</dc:creator><description>Hi Frank, d'ohh, I forgot to mention that you can't use Remote Kernel Tracker for this at all.  Kernel Tracker discards CeLog events that it doesn't know about, and it doesn't know about the profiler events.  You'll have to use CeLogFlush.exe to capture the data to a log file.  Sorry about that!&lt;br/&gt;&lt;br/&gt;Sue&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=522046" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#522022</link><pubDate>Wed, 01 Feb 2006 18:48:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:522022</guid><dc:creator>Frank W</dc:creator><description>Hi Sue,&lt;br/&gt;&lt;br/&gt;thanks for your very helpful articles.&lt;br/&gt;&lt;br/&gt;I have tried to analyze the Kernel- tracker- recorded file CeLog.clg (Windows CE .NET 4.20 platform) and get some errors from peralyzer.exe:&lt;br/&gt;D:\WinCE420\release&amp;gt;perfalyzer.exe CeLog.clg&lt;br/&gt;Loading CE database API from cedb400.dll&lt;br/&gt;Loading symbols for celog.dll... 18 loaded.&lt;br/&gt;Loading symbols for pspubsubce.dll... .map file not found.&lt;br/&gt;Loading symbols for lan91c111.dll... 94 loaded.&lt;br/&gt;Loading symbols for netui.dll... 706 loaded.&lt;br/&gt;...&lt;br/&gt;Loading symbols for rnaapp.exe... 120 loaded.&lt;br/&gt;Loading symbols for RTH.EXE... 0 loaded.&lt;br/&gt;Failure looking up symbol 0x1fb4285c&lt;br/&gt;Failure looking up symbol 0x1fb4a768&lt;br/&gt;Failure looking up symbol 0x1fb4a8d0&lt;br/&gt;Failure looking up symbol 0x1fb4a768&lt;br/&gt;Failure looking up symbol 0x1fb4a8d0&lt;br/&gt;Failure looking up symbol 0x1fb4ad38&lt;br/&gt;Failure looking up symbol 0x10011cac&lt;br/&gt;Generating overall module report...&lt;br/&gt;No records in input database!&lt;br/&gt;Count failure generating overall module report&lt;br/&gt;Done: See Perf\overall.htm for results.&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;ERROR: d:\mckendricbb\private\winceos\coreos\filesys\dbase\.\dbase.c line 1622: DB:Fault!! - Corrupt OpenDB list - nuking it&lt;br/&gt;&lt;br/&gt;D:\WinCE420\release&amp;gt;&lt;br/&gt;&lt;br/&gt;The file overall.htm has no entries.&lt;br/&gt;&lt;br/&gt;Frank&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=522022" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#518272</link><pubDate>Fri, 27 Jan 2006 15:13:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:518272</guid><dc:creator>ce_base</dc:creator><description>Thanks M.  =)  Just wait for the Microsoft cloning program.  Though I don't think I or any of my clones would want to work on prefast.  Watch out, you might become a liberal then.&lt;br&gt;&lt;br&gt;Oh and as to hints about the future.  Sorry, no, can't do that.  But just wait, there are great things coming up that we're very excited about.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=518272" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#518224</link><pubDate>Fri, 27 Jan 2006 10:45:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:518224</guid><dc:creator>M</dc:creator><description>Awesome Sue! I wish each team within Microsoft had their own copy of you ;)&lt;br&gt;&lt;br&gt;&lt;br&gt;Can't you start in the prefast team, so the platform builder prefast version could start supporting partial specialization of template classes?&lt;br&gt;&lt;br&gt;Or make it possible to use the VS2005 build environment from platform builder?&lt;br&gt;&lt;br&gt;Or just give some hints to the community what next platform builder will look like?&lt;br&gt;&lt;br&gt;&lt;br&gt;Oh, luckily I don't live in the US, so the risk of becoming a conservative voter shouldn't be that high.&lt;br&gt;&lt;br&gt;&lt;br&gt;Keep up your excellent work!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=518224" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#517172</link><pubDate>Wed, 25 Jan 2006 03:10:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517172</guid><dc:creator>JennyK</dc:creator><description>Very helpful.  Thank you, Sue!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517172" width="1" height="1"&gt;</description></item><item><title>re: CeLog + Monte Carlo = Perfalyzer</title><link>http://blogs.msdn.com/b/ce_base/archive/2006/01/23/516586.aspx#517050</link><pubDate>Tue, 24 Jan 2006 23:25:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517050</guid><dc:creator>ce_base</dc:creator><description>Thanks Doug.  Yeah, it would be relatively easy to add a command-line option to remove idle from the totals and percentages.  We've talked about it before but never quite had the need.  Hopefully I'll get to it sometime...&lt;br&gt;&lt;br&gt;Sue&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=517050" width="1" height="1"&gt;</description></item></channel></rss>