pypdevsbbl.tracers.ProfileTracer module¶
Makes up a profile of a simulation run.
This file contains the tracer that can analyze the performance and throughput of the messages traveling through a model during simulation.
-
class
pypdevsbbl.tracers.ProfileTracer.ProfileTracer(uid, server, filename)[source]¶ Bases:
pypdevsbbl.tracers.BaseTracerTraces all the coming and going of messages and transitions.
The output file is in CSV-format and contains two tables, separated with a newline. For all DEVS blocks that underwent transitions, a summary of the counts of the internal, external and confluent ones. For all connections, an overview will be presented of the amount of messages that passed over these connections. Finally, a total for all values will be given as well.
Parameters: - uid – A unique identifier for distributed simulation. Will be set automatically.
- server – The server that runs the distributed simulation. Will be set automatically.
- filename (str) – The name of the file to write the results to. When
None, the console output will be used instead.