interp limit

interp limit path limitType ?option? ?value ...?

Introduced in Tcl 8.5 with Tip 143.

Sets up, manipulates and queries the configuration of the resource limit limitType for the interpreter denoted by path. If no option is specified, return the current configuration of the limit. If option is the sole argument, return the value of that option. Otherwise, a list of option/value argument pairs must be supplied.

With introspection, one can find out what limitTypes are supported:

 % interp limit {} type
 bad limit type "type": must be commands or time

See also: