42 #ifndef __SIMULATIONPROFILER_HPP___
43 #define __SIMULATIONPROFILER_HPP___
49 #include <boost/date_time/posix_time/posix_time.hpp>
55 namespace openfluid {
namespace machine {
71 typedef std::map<openfluid::base::SimulationStatus::SimulationStage,boost::posix_time::time_duration> CumulativeSimulatorProfile_t;
73 typedef std::map<openfluid::ware::WareID_t,CumulativeSimulatorProfile_t> CumulativeModelProfile_t;
75 typedef std::map<openfluid::ware::WareID_t,boost::posix_time::time_duration> CurrentTimeIndexModelProfile_t;
79 CumulativeModelProfile_t m_CumulativeModelProfile;
81 CurrentTimeIndexModelProfile_t m_CurrentTimeIndexModelProfile;
82 CurrentTimeIndexModelSequence_t m_CurrentTimeIndexModelSequence;
91 std::ofstream m_CurrentSequenceFile;
93 std::ofstream m_CurrentProfileFile;
95 static double getDurationInDecimalSeconds(
const boost::posix_time::time_duration& Duration);
97 void flushCurrentProfileToFiles();
107 const boost::posix_time::time_duration& Duration);
unsigned long long TimeIndex_t
Definition: DateTime.hpp:62
std::list< openfluid::ware::WareID_t > WareIDSequence_t
Definition: SimulationProfiler.hpp:67
std::string WareID_t
Definition: WareSignature.hpp:86
Definition: SimulationStatus.hpp:56
SimulationStage
Definition: SimulationStatus.hpp:60
Definition: SimulationProfiler.hpp:63
#define DLLEXPORT
Definition: dllexport.hpp:51