-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Added logical support in Matlab host - otherwise, logicals were tr…
…eated as "false" 2) Changed command syntax for profiler intergation in mex call classes 3) Modified the generic Matlab profiler functions to be clear and simple to use
- Loading branch information
1 parent
6d50ed7
commit 36dfcd7
Showing
7 changed files
with
81 additions
and
31 deletions.
There are no files selected for viewing
41 changes: 22 additions & 19 deletions
41
sources/jvxApplications/jvx-m-host-1/m-files/matlab/profiling/jvxProfileConfig.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
function hdl_profile_data = jvxProfileNeleConfig() | ||
hdl_profile_data = []; | ||
|
||
% Allocate Debug handle | ||
hdl = []; | ||
hdl.hooks.inUse = false; | ||
|
||
global hdl_profile_data; | ||
if(~isempty(hdl_profile_data)) | ||
function hdl = jvxProfileConfig(hdl) | ||
|
||
initHooks = false; | ||
if(~isempty(hdl)) | ||
if( ... | ||
(isfield(hdl_profile_data, 'cfg')) && ... | ||
(isfield(hdl_profile_data, 'start')) && ... | ||
(isfield(hdl_profile_data, 'step')) && ... | ||
(isfield(hdl_profile_data, 'stop'))) | ||
hdl.hooks.init = hdl_profile_data; | ||
hdl.hooks.inUse = true; | ||
(isfield(hdl, 'cfg')) && ... | ||
(isfield(hdl, 'start')) && ... | ||
(isfield(hdl, 'step')) && ... | ||
(isfield(hdl, 'stop'))) | ||
initHooks = true; | ||
end | ||
end | ||
|
||
if(initHooks) | ||
hdl.hooks.init = hdl; | ||
hdl.hooks.inUse = true; | ||
else | ||
hdl.hooks.inUse = false; | ||
end | ||
|
||
% Set test points to "none" by default | ||
hdl.cfg = []; | ||
hdl.cfg.tokenTp.SELECTION_BITFIELD = '0x0'; | ||
|
||
if(hdl.hooks.inUse == true) | ||
[hdl] = hdl.hooks.init.cfg(hdl); | ||
else | ||
else | ||
warning('We need to set the profiling configuration here!'); | ||
end | ||
|
||
warning('Populate <hdl.cfg.tokenTp> at this point to control the degree of debug output!'); | ||
end |
2 changes: 1 addition & 1 deletion
2
sources/jvxApplications/jvx-m-host-1/m-files/matlab/profiling/jvxProfileStart.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sources/jvxApplications/jvx-m-host-1/m-files/matlab/profiling/jvxProfileStep.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sources/jvxApplications/jvx-m-host-1/m-files/matlab/profiling/jvxProfileStop.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters