Skip to content

profiler

profiler::disable

Disable the profiler if previously activated with profiler::enable.

Example usage:

profiler::disable

profiler::enable

Enables the profiler and start writing to the given file. The profiler will also be active in subshells of this current shell.

Inputs:

  • $1: path as string:

    the file to write to.

Example usage:

profiler::enable "${HOME}/valet-profiler-${BASHPID}.txt"

There can be only one profiler active at a time.

profiler::pause

Pause the profiler if previously activated with profiler::enable.

Example usage:

profiler::pause

profiler::resume

Resume the profiler if previously paused with profiler::pause.

Example usage:

profiler::resume

Important

Documentation generated for the version 0.43.381 (2026-07-27).