title: What is the maximum history size of the MATLAB profiler?
body: <p>I'm trying to track down all user-created functions and scripts within lenghty MATLAB code. The following code does this but due to MATLAB's profiler's default history size of 1,000,000 I'm missing a good amount of functions.</p>
  
  <pre><code>function endProfile(p)
  
      profile off
      diary('Diary_endProfile')
      for k = 1:size(p.FunctionHistory, 2)
  
          if p.FunctionHistory(1, k) == 0
              str = 'entering function: ';
          else
              str = 'exiting function: ';
          end
  
          if isempty(strfind(p.FunctionTable(p.FunctionHistory(2,k)).FileName, 'C:\Program Files\MATLAB\')) &amp;&amp;...
             ~strcmp(p.FunctionTable(p.FunctionHistory(2, k)).FileName, '')
              disp([str p.FunctionTable(p.FunctionHistory(2, k)).FunctionName])
          end
      end
  
      profile off
      profile viewer
  
  end
  </code></pre>
  
  <p>I initialize the profiler with the following code from the first script of the code under analysis:</p>
  
  <pre><code>profile clear
  
  profile on -history -historysize 1000000000
  </code></pre>
  
  <p>The previous function is called at the end of the first script as follows:</p>
  
  <pre><code>endProfile(profile('info'))
  </code></pre>
  
  <p>Does anyone know what the maximum history size is and/or if there are alternate ways of increasing the size?</p>
  
  <p>Thanks!</p>