eval_count

eval_count — counts evaluations made since a program started.

Syntax

eval_count ()

		

Arguments

none

Returns

A list of three values. First is the number of times any symbol has been evaluated. Second is the number of times any function has been evaluated. Third is the number of times any other Gamma expression has been evaluated.

Description

This function counts the number of evaluations of symbols, functions, and other Gamma expressions. All of these are counted from the time the program started.

Example

Gamma> gc();
1
Gamma> eval_count();
(0 2 0)
Gamma> a = 5;
5
Gamma> eval_count();
(0 4 1)
Gamma> a;
5
Gamma> eval_count();
(1 5 1)
Gamma>