$profiler.dump

Indicate that the profiler trace is requested.
Syntax
    $profiler{dump}{filename}{append}
    $profiler.dump{filename}{append}
DocumentationIndicate that the profiler trace is requested.

Parameters:
    filename, an optional parameter to specify an output source other than the current page; defaults to the current page.
    append, an optional parameter to specify if the content of the given file shall be overwriten by the current profiler trace
    or if the current profiler trace should be appended to the content of the file. The default value is 0 for overwritte, the value 1 stands for append.
Returns:
    the profiler trace if no file is specified.
Note:
    to dump the profiler trace the profiler must be disabled (off).
Examples
    $profiler{on}
    $try{$createGroup{guest_group}}{Group already exists}
    $try{$createUser{guest}{guest}}{User already exists}
    $try{$addToGroup{guest}{guest_group}}{}
    $grantGroupAccess{guest_group}{ACCESS_READ}
    $try{$sql{drop table CUSTOMER}}{}
    $sql{create table CUSTOMER(name varchar,firstname varchar,email varchar)}
    $profiler{off}
    $profiler{dump}
    Result:
    Returns an exact profile for executing each SITEFORUM Script Function between starting (on) and stopping (off) the profiler. 'Dump' displays the result:
    Total timeCountFunction
    19 ms2xsql
    10 ms4xtry
    2 ms1xgrantGroupAccess
    1 ms1xcreateGroup
    1 ms1xcreateUser
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters0
Maximum parameters 0