What are my options if I'd like to profile a mex file in Windows. I'm open to trying a specific compiler/workflow.
Thanks, Jim

 Respuesta aceptada

Ryan Povall
Ryan Povall el 8 de Abr. de 2016
Editada: Ryan Povall el 8 de Abr. de 2016

0 votos

It seems like you can profile MEX files using Visual Studio. From the menu, go to the "Analyze"-> "Profiler" -> "Attach/Detach" and attach the MATLAB.exe process. After which, you can run the MEX function and detach the process when complete.
Make sure when building the MEX file using the "mex" command, to include the -g and -O flags.
More information can be found from the following post:

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Abr. de 2016

Editada:

el 8 de Abr. de 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by