|
On entering profile it is set equal to a number
i.e.
option profile=1 or option profile=3
The use of higher numbers causes GAMS to carry out profiling within control structures such as loop, if, repeat, for and when. The number tells how deep within the control structures to go.
If profile is set to
| 1 | GAMS reports statement timing and memory use at the control statement level without details on statements within control structures. |
| 2 | GAMS includes output on statement timing and memory use for all statements that are not within control statements plus the first level of statements within control structures. |
| 3 | GAMS includes profile reports on statement timing and memory use for all statements that are not within control statements and on statements nested within a second level of control statements (i.e. loops or ifs within loops). |
gamsloop.gms provides an example. Note profile can have values of 4 and above.
|