Solved by fiorenza2 in post #3 
              
              
                Turns out that the code I was debugging was simply too complex for the profiler; I scaled it back considerably and it works fine.