1 classdef
Suite < matlab.unittest.TestCase
6 function self =
Suite(varargin)
7 self = self@matlab.unittest.TestCase(varargin{:});
12 function test_basicTouch(
self)
17 check(true,{
'titlePrefix',
'test1'});
18 check(
true,{
'titlePrefix',
'test2'});
20 check(
false,{
'keepCache',
false});
21 check(
false,{
'keepCache',
true});
23 function check(isProfInfo,inpArgList)
33 for k=1:10,cellfun(@(y)cellfun(@(x)x,{1,2,3}),{1,2},...
34 'UniformOutput',
false);
41 SProfileInfo=profile(
'info');
45 inpArgList=[{0,SProfileInfo},inpArgList];
54 SFiles=dir([tmpDir,
filesep,
'*.html']);
55 self.verifyEqual(
true,numel(SFiles)>2);
57 function checkIfOff(isOff)
58 SStatus = profile(
'status');
59 self.verifyEqual(isOff,isequal(
'off',SStatus.ProfilerStatus));
63 function self=tear_down(
self)
66 function testRunAndCheckTimeTouch(~)
67 profileMgr=
mxberry.dev.prof.ProfileManager();
69 [~]=profileMgr.runAndProcess(@run);
70 [~]=profileMgr.runAndProcess(@run,'myProfilingCase');
71 [~]=profileMgr.runAndProcess(@run,'myProfilingCase',...
73 [~]=profileMgr.runAndProcess(@run,'myProfilingCase',...
74 'nRuns',3,'useMedianTime',true);
TMPDATAMANAGER provides a basic functionality for managing temporary data folders, root folder name is determined automatically.
static function getDirByCallerKey(in keyName)
GETDIRBYCALLERKEY returns a unique temporary directory name based on caller name and optionally based...
function profView(in varargin)
PROFVIEW enhances a functionality of Matlab built-in function profview by allowing to display several...
function profSave(in SProfileInfo, in dirName)
PROFSAVE does the same as the built-in profsave function except for displaying the saved report in th...