="headerlink" href="#compiling-source-files-for-port-profiling" title="Link to this heading"></a></h2>
<p>To compile source files for port profiling, simply compile them in debug
mode and with the <code class="docutils literal notranslate"><span class="pre">source_data</span></code> flag turned on. For example:</p>
<div class="highlight-logtalk notranslate"><div class="highlight"><pre><span></span>| <span class="o">?-</span> <span class="k">logtalk_load</span>(my_source_file, [debug(on), source_data(on)]