# RUNPROF

> [HTML Version](runprof_lit.htm)

_Added July 2023_

**RUNPROF <program name>**

**RUNPROF \{switches\}**

RUNPROF generates a run profile log to be analyzed for an overview of the program call structure and performance. The first syntax runs <program name> and captures profile data to <pid>.rpl. When run without <program name>, RUNPROF returns its current status.

**Switches**

| | |
|------|------|
| **Switch** | **Effect ** |
| /ON \{:output file\} | Enable logging. Ddefault file is <pid>.rpl. |
| /VERBOSE | With /ON, logs calls not just returns. |
| /OFF | Disable profiling and close output file. |
| /CSV\{:rplspec\} | Create CSV from specified .rpl file. |
| /XL\{:rplspec\} | Create detailed spreadsheet from specified rpl file. |
| /XLSUM\{:rplspec\} | Create summary spreadsheet from specified rpl file. |
| /PROG:<program> | Use with /XL to specify target program. |
| /? | Writes switch listing and usage info to the screen. |




**See Also**

•	[MX\_RUNPROF](mx_runprof.md)

**History**

2023 July, A-Shell 6.5.1735:  Function added to A-Shell.