perf

Shell performance monitoring.

Source: src/execution/builtins.f90:1751-1788

Synopsis

perf [on | off | stats | reset]

Description

Controls fortsh's built-in performance monitoring. When enabled, the shell tracks parse time, execution time, and glob time for every command.

Subcommands

SubcommandDescription
(none)Show monitoring status, total commands, and current memory usage
onEnable performance monitoring
offDisable performance monitoring
statsPrint detailed stats: uptime, total commands, average parse/exec/glob times
statusSame as stats
resetZero out all counters

Usage

# Enable monitoring
perf on

# Run some commands...
ls -la
find . -name "*.f90"

# Check stats
perf stats

# Reset counters
perf reset

# Disable
perf off

Exit Status

StatusCondition
0Success
1Unknown subcommand

See Also

  • memory - Memory usage monitoring
  • times - CPU time accounting