Profiling mex in Windows
조회 수: 8 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Ryan Povall
2016년 4월 8일
편집: Ryan Povall
2016년 4월 8일
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:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!