It is possible to print the simulation statistics to the Simulation plane of the Command View. This is a useful feature if you want to see how much processor time primitives or modules need in simulation and how many times each instance fires.
This function is activated by the PTcl command stats on. Simulation time is increased by between 15 and 30 percent depending on the complexity of the model when statistics collection is active. We recommend you keep the stats turned off when possible.
The following steps describe an example session:
It is also possible to write the stats to a file.
The file now holds all the relevant information regarding the simulation and can be viewed using a text editor. As an example the statistics of the testPacket demo which can be found in MLD Libraries→DE→Demo.
Primitive Clock#1 1.609375 52
Primitive Ramp#1 1.609375 51
Primitive Packetize#1 1.609375 51
Primitive UnPacketize#1 1.609375 60
Primitive VarServer#1 1.609375 10
Primitive XMgraph.input=2#1 1.625 51
Primitive ExecuteInOrder.Out=2#1 1.625 20
Module UniformFloatConst#1 1.625
Primitive auto-fork-node0 1.625 51
Primitive auto-fork-node1 1.625 51
Primitive ITerminator#24 1.625 0
Sum module testPacket: 17.796875
Primitive RandomConst#1 1.625 10
Sum module UniformFloatConst#1: 1.625
The file contains four columns:
In this case the total processor time is measured in 100ths of a second and the .stats file shows 10ths of a second.
The simulation must run for more than one tenth of a second processor time.