from
Task execution profiling kit for Real-Time Workshop targets
by David Maclay
A set of tools and examples to implement task execution profiling for a Real-Time Workshop target
|
| make_rtw_exprofile(varargin)
|
function make_rtw_exprofile(varargin)
% MAKE_RTW_EXPROFILE make command including additional sources and includes
% Copyright 2002-2006 The MathWorks, Inc.
% $Revision:$
% $Date:$
user_src_file = [matlabroot '\toolbox\rtw\targets\common\profile\execution\profile.c'];
user_include_dir = [matlabroot '\toolbox\rtw\targets\common\profile\execution'];
% Remove spaces, if any, from the paths
if (any(isspace(user_src_file)) ~= 0)
user_src_file = rtw_alt_pathname(user_src_file);
end
if (any(isspace(user_include_dir)) ~= 0)
user_include_dir = rtw_alt_pathname(user_include_dir);
end
user_srcs_arg = [ 'USER_SRCS="' user_src_file '"' ];
user_includes_arg = [ 'USER_INCLUDES="-I' user_include_dir '"'];
make_rtw(varargin{:}, user_srcs_arg, user_includes_arg);
|
|
Contact us at files@mathworks.com