Can I use Matlab Profiler on a compiled DLL

조회 수: 4 (최근 30일)
Graham Horsley
Graham Horsley 2015년 5월 7일
답변: Philip Borghesani 2015년 5월 7일
I have some Matlab code which I have built into a dotNET DLL using the Matlab Compiler SDK. I would like to profile this code to investigate the runtime performance, but if I include the line "profile on" then at runtime I get the error "undefined function 'profile' ...".
It is not possible to run the code directly from the Matlab Desktop, because it gets its inputs from dotNET objects that I create in another program and pass into the DLL as arguments.

답변 (1개)

Philip Borghesani
Philip Borghesani 2015년 5월 7일
The profiler is not available in compiled code. You will need to make a driver program in MATLAB that can call your code or use the MATLAB engine API to write a program that loads your data and then calls into a full copy of MATLAB.
Can you use the MATLAB dot.net api to call into the clr and create your data?

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by