forked from Project-OMOTES/rtc-tools-heat-network
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Use the following code for time statistics on a run:
import cProfile, pstats
pr = cProfile.Profile()
pr.enable()
Code to run scenario --> like run_grow_tutorial
pr.disable()
pstats.Stats(pr).sort_stats("cumtime").print_stats(100)
This provides overview of time spend in parts of code. Here it is noted that each call to _load_profile_timeseries_from_database takes about 0.5s. Since this is called for every unique profile, if users start to add more unique profiles, this can add up significantly in time. The loading of the profile itself (load_influxdb) takes only about 0.1s per profile.
The influxdatabasemanager should be safed, such that if that connection was already made for a previous profile, this connection can be used again.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request