40 #ifndef __OPENFLUID_MACHINE_SIMULATIONPROFILER_HPP__
41 #define __OPENFLUID_MACHINE_SIMULATIONPROFILER_HPP__
67 typedef std::map<openfluid::base::SimulationStatus::SimulationStage,TimeResolution_t>
68 CumulativeSimulatorProfile_t;
70 typedef std::map<openfluid::ware::WareID_t,CumulativeSimulatorProfile_t> CumulativeModelProfile_t;
72 typedef std::map<openfluid::ware::WareID_t,TimeResolution_t> CurrentTimeIndexModelProfile_t;
76 CumulativeModelProfile_t m_CumulativeModelProfile;
78 CurrentTimeIndexModelProfile_t m_CurrentTimeIndexModelProfile;
79 CurrentTimeIndexModelSequence_t m_CurrentTimeIndexModelSequence;
87 std::ofstream m_CurrentSequenceFile;
89 std::ofstream m_CurrentProfileFile;
93 void flushCurrentProfileToFiles();
Definition: SimulationStatus.hpp:56
SimulationStage
Definition: SimulationStatus.hpp:59
Definition: SimulationProfiler.hpp:57
std::list< openfluid::ware::WareID_t > WareIDSequence_t
Definition: SimulationProfiler.hpp:60
std::chrono::nanoseconds TimeResolution_t
Definition: SimulationProfiler.hpp:62
void addDuration(const openfluid::ware::WareID_t &SimID, openfluid::base::SimulationStatus::SimulationStage ProfilePart, const TimeResolution_t &Duration)
SimulationProfiler(const openfluid::base::SimulationStatus *SimStatus, const WareIDSequence_t &OrigModelSequence)
#define OPENFLUID_API
Definition: dllexport.hpp:86
std::uint64_t TimeIndex_t
Definition: TypeDefs.hpp:298
std::string WareID_t
Definition: TypeDefs.hpp:49
Definition: ApplicationException.hpp:47