<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Project Profiler issue]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=589</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=589&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Project Profiler issue.]]></description>
		<lastBuildDate>Mon, 24 Oct 2016 12:32:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2684#p2684</link>
			<description><![CDATA[<p>Frank,</p><p>The Windows file dialogs can change the working directory, which is what&#039;s occurring in your case.&nbsp; We don&#039;t really have a good method of detecting this, though, when trying to open the profiler data.&nbsp; I&#039;ll try to think of a solution, but, for now, you&#039;ll need to copy <em>gmon.out</em> back to your project directory to generate profile results.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 24 Oct 2016 12:32:56 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2684#p2684</guid>
		</item>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2683#p2683</link>
			<description><![CDATA[<p>Jeff,</p><p>Regarding the question of whether my program is changing the current directory itself, I would have to say yes, but...<br />It does NOTchange the directory using a CALL CHDIR() statement, but it does open a file for data entry using AppGraphics Openfile statement in a different directory from the programs current directory thereby changing the directory.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file_menu&nbsp; &nbsp;= addmenu(&quot;File&quot;, root_menu)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open_item = addmenuitem(&quot;OpenFile&quot;, file_menu, handle_open)</p><p>For example,</p><p>using AppGraphics open menu it could open a data file in a sub-directory of the programs directory, or a completely different directory from the programs current directory. </p><p>(.../fortran/myprog opens a data file in .../fortran/myprog/data ) <br />or <br />(.../fortran/myprog opens a data file in .../fortran/notmyprog/data ).</p><p>I hope my explanation was helpful,</p><p>Frank</p>]]></description>
			<author><![CDATA[null@example.com (drfrank)]]></author>
			<pubDate>Fri, 21 Oct 2016 22:23:33 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2683#p2683</guid>
		</item>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2682#p2682</link>
			<description><![CDATA[<p>Frank,</p><p>Is your program actually changing the current directory itself?&nbsp; Looking at Simply Fortran, it already does account for a different working directory when trying to locate and load <em>gmon.out</em>.&nbsp; Specifically, I&#039;m wondering if your code calls </p><div class="codebox"><pre><code>CALL CHDIR(&quot;path\to\data&quot;)</code></pre></div><p>while running.&nbsp; Simply Fortran really wouldn&#039;t know where to locate the profiler data in that case.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 21 Oct 2016 00:11:10 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2682#p2682</guid>
		</item>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2681#p2681</link>
			<description><![CDATA[<p>Frank</p><p>Ah, I see what&#039;s happening.&nbsp; The <em>gmon.out</em> file would be created in the working directory when the program runs.&nbsp; By default, the working directory is also the project directory.&nbsp; However, if you change the working directory, the profiler is still looking for <em>gmon.out</em> in the project directory.</p><p>Interesting bug!&nbsp; I&#039;ll see that it&#039;s fixed!</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 20 Oct 2016 11:27:50 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2681#p2681</guid>
		</item>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2680#p2680</link>
			<description><![CDATA[<p>Jeff,</p><p>Profiler problem solved.</p><p>Project steps taken:<br />-Build<br />&nbsp; &nbsp; -Clean</p><p>-Project<br />&nbsp; &nbsp; -options<br />&nbsp; &nbsp; &nbsp; &nbsp; -General<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -Exec<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -64 Bit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -Gui<br />&nbsp; &nbsp; -code generation<br />&nbsp; &nbsp; &nbsp; &nbsp; -optim - common<br />&nbsp; &nbsp; &nbsp; &nbsp; -Enable Profiling<br />&nbsp; &nbsp; &nbsp; &nbsp; -CPU - generic<br />&nbsp; &nbsp; &nbsp; &nbsp; -compile strictly selection<br />&nbsp; &nbsp; -fortran<br />&nbsp; &nbsp; &nbsp; &nbsp; -&#039;all&#039; unchecked<br />&nbsp; &nbsp; -linker<br />&nbsp; &nbsp; &nbsp; &nbsp; -all static<br />&nbsp; &nbsp; -compiler<br />&nbsp; &nbsp; &nbsp; &nbsp; -fortran compiler - empty<br />&nbsp; &nbsp; &nbsp; &nbsp; -C compiler - empty<br />&nbsp; &nbsp; &nbsp; &nbsp; -linker: -lappgraphics -lgdi32 -lcomdlg32 -lcomctl32 -luuid -loleaut32 -lole32 </p><p>-Build<br />&nbsp; &nbsp; -Profile --&gt; compile and run program (runs okay)</p><p>&nbsp; &nbsp; -Profile (selected again after program runs and completed)<br />&nbsp; &nbsp; &nbsp; &nbsp; ( Profiler Error - Profiling data does not yet exist... )</p><p>However, the gmon.out file was created in the program project sub-folder where the program accesses a data file.<br />The gmon.out file is not located in the project folder (.../fortran/myprog but in .../fortran/myprog/data ).</p><p>But when the gmon.out file is copied back to the project folder and the Profile Project option is selected, then the profiler does read the gmon.out file and results are displayed properly.&nbsp; </p><p>Solution: The Profiler file gmon.out must be located in or copied to the main project file where the program is compiled and run even if the program reads a data file from another folder.</p><p>Frank</p>]]></description>
			<author><![CDATA[null@example.com (drfrank)]]></author>
			<pubDate>Wed, 19 Oct 2016 20:30:35 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2680#p2680</guid>
		</item>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2679#p2679</link>
			<description><![CDATA[<p>Frank,</p><p>The project is also 64-bit?</p><p>When you enabled profiling, did you first clean your project?&nbsp; Everything needs to be recompiled to ensure that profiling works, and I don&#039;t believe that Simply Fortran actually forces this to occur when that flag is changed.&nbsp; I&#039;m just trying to eliminate some small issues.</p><p>Also, you mentioned that &quot;...no profile is created.&quot;&nbsp; What exactly do you mean?&nbsp; Do the profile results come back blank?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 19 Oct 2016 11:33:26 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2679#p2679</guid>
		</item>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2678#p2678</link>
			<description><![CDATA[<p>Jeff,</p><p>I&#039;m running Windows 7 (64-bit)</p><p>Frank</p>]]></description>
			<author><![CDATA[null@example.com (drfrank)]]></author>
			<pubDate>Tue, 18 Oct 2016 19:45:29 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2678#p2678</guid>
		</item>
		<item>
			<title><![CDATA[Re: Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2677#p2677</link>
			<description><![CDATA[<p>Frank,</p><p>There is no size limitation on the profiler (it is just GNU gprof under the hood), and AppGraphics shouldn&#039;t affect it.&nbsp; However, AppGraphics does introduce threads, which may skew profiler results.&nbsp; I&#039;ll see if I can replicate the issue, though.</p><p>Is your project a 32- or 64-bit project?&nbsp; Which version of Windows are you on?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Tue, 18 Oct 2016 19:37:28 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2677#p2677</guid>
		</item>
		<item>
			<title><![CDATA[Project Profiler issue]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=2676#p2676</link>
			<description><![CDATA[<p>Jeff,</p><p>I&#039;m have difficulty accessing the Project Profiler using SF 2.31 build 2290.&nbsp; Using a single module program, the Profiler works just fine.&nbsp; But when I try Profiling a large 30 module program that uses AppGraphics, no profile is created. I did check the profier option in the project menu and&nbsp; I&#039;ve not tried profiling a large multi-module program without using AppGraphics.</p><p>I have not explored this issue further, but wondered whether there is a size limitation for the Profiler, or is compatable with AppGraphics.</p><p>I look forward to any suggestions that may help get the profiler working.</p><p>Thanks as always,</p><p>Frank</p>]]></description>
			<author><![CDATA[null@example.com (drfrank)]]></author>
			<pubDate>Mon, 17 Oct 2016 20:11:38 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=2676#p2676</guid>
		</item>
	</channel>
</rss>
