collectPerformance

Opt this resource in to mailbox-traffic and (if a statechart was configured before this call) statechart-state statistics. Must be called before simulate() runs since the returned AgentModel.AgentPerformance is a ksl.simulation.ModelElement. Idempotent — a second call returns the existing observer.

See AgentModel.AgentPerformance for the metrics published.

Parameters

allPerformance

if true, additionally publishes the NumPendingAtEndOfReplication response