profile
- : profile
command¶ - :
s =profile("status")¶ - :
info =profile("info")¶ Control the execution profiler.
onStart collecting data (earlier data is kept). The MATLAB options -detail, -timer, -history and -memory are accepted and ignored.
offStop collecting; the data stays available.
resumeContinue collecting without clearing.
clearDiscard all collected data.
statusReturn a structure whose field
ProfilerStatusis"on"or"off".infoReturn the collected data: the field
FunctionTablehas one entry per function (name, total time, number of calls, recursion flag, parent and child indices) andHierarchicalholds the call tree.viewerShow a text summary of the collected data (no interactive GUI).
reportPrint a flat profile table (
profshow) and write a static HTML stub viaprofsaveunder a temporary directory. This is the headless equivalent of MATLAB’s Profile Report window.