Closed diegozea closed 11 years ago
Definitely a bug, fixed in cd999d0de4831a14ee4820bb03699bd8f39a690e
However, all this fix does is explain what happened: your function g()
presumably runs very quickly. The sampling profiler by default takes a sample once per millisecond; if your running time is shorter than that, it does not capture any samples. This error was triggered when there were no samples. You can fix this with something like
@sprofile for i = 1:10000; g(); end
Thanks Tim!!! I didn't know that.
I don't know if I'm doing something wrong or if this is a bug: