function profilingInitialize(modelName)
    % this callback is executed before running a simulation
    % its purpose is to remove any ExecutionTime variable in the base workspace 
    % from a previous run

%   Copyright 2017 The MathWorks, Inc.

    workspaceVarName = get_param(modelName, 'CodeExecutionProfileVariable');
    if evalin('base', ['exist(''' workspaceVarName ''',''var'')==1'])
        evalin('base', ['clear ' workspaceVarName ]);
    end
end

