Extract execution-time profile for code generated from MATLAB function (MATLAB code generation)
To get the coder execution profile for a MATLAB function, use the
myExecutionProfile = getCoderExecutionProfile('myMATLABFunction');
myMATLABFunction— Function whose generate code is profiled
myMATLABFunction is the MATLAB function whose generate code is profiled for execution-time.
myExecutionProfile— Workspace variable that contains the execution-time profile
myExecutionProfile is a workspace variable that contains
the execution-time profile of the code generated from your MATLAB function.