Skip to content

Commit 82c2989

Browse files
committed
250731.163301.PDT matlab profiling: clear memory to see whether it fixes the issue of runner shutting down
1 parent 3a19a61 commit 82c2989

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/scripts

Submodule scripts updated 1 file

matlab/tests/private/perfdata.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@
9898
prof_output{iprec} = perfprof(frec, fmin, prof_options);
9999
%dataprof(frec, fmin, pdim, prof_options);
100100
end
101+
% Clear the variables to save memory. Otherwise, on GitHub Actions, the memory may be exhausted and
102+
% cause the runners to shut down.
103+
clear('frec', 'fmin', 'pdim', 'plist');
101104

102105
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
103106
% Appearance of the plots.

0 commit comments

Comments
 (0)