libmuscle.manager.profile_store module

class libmuscle.manager.profile_store.ProfileStore(db_dir: Path)[source]

Bases: ProfileDatabase

Creates and fills a profiling database.

This class creates the database, and then allows writing to it. It’s only used internally, and it’s almost a non-const version of ProfileDatabase.

add_events(instance_id: Reference, events: Iterable[ProfileEvent]) None[source]

Adds profiling events to the database.

Parameters:

events – The events to add.

shutdown() None[source]

Shut down the profile store.

This closes the database connection cleanly.

store_instances(instances: List[Reference]) None[source]

Store names of instances in the simulation.

Parameters:

instances – List of instance names to store

store_resources(resources: Dict[Reference, Resources]) None[source]

Store resource assignments into the database.

Parameters:

resources – The resources to store.