I need to profile some C++ Mex code.
It is built with G++, using arguments similar to those mex
would pass. I can absolutely pass -o0 and -g or -g3, no problem.
The current solutions I have found:
- MATLAB Profiler - Requires it was built with
mex
. I tried this myself to no avail. (It provided no information) - Visual Studio - Also apparently requires that it was built with
mex
. I tried this myself with these results sadly. (It just froze) - MATLAB Engine - Apparently also requires it was built with
mex
. - Building a C++ driver for it instead of the MATLAB script is likely not an option, as the script is complex and does significant setup (some with other mex files) before the section I want is called.
Is there anything that will work with MEX files not built with mex
?