2 #include "GaudiKernel/MsgStream.h"
3 #include "GaudiKernel/StatusCode.h"
12 declareProperty(
"RecordTimeline",
m_isEnabled =
false);
88 std::ofstream out(
m_timelineFile, std::ofstream::out | std::ofstream::trunc);
90 out <<
"#start end algorithm thread slot event" << std::endl;
93 out << std::chrono::duration_cast<std::chrono::nanoseconds>(e.start.time_since_epoch()).count() <<
" "
94 << std::chrono::duration_cast<std::chrono::nanoseconds>(e.end.time_since_epoch()).count() <<
" "
98 << e.event << std::endl;
Definition of the MsgStream class used to transmit messages.
StatusCode initialize() override
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual StatusCode reinitialize()
bool isSuccess() const
Test for a status code of SUCCESS.
TimelineSvc(const std::string &name, ISvcLocator *svc)
std::string m_timelineFile
This class is used for returning status codes from appropriate routines.
#define DECLARE_COMPONENT(type)
virtual void registerTimelineEvent(const TimelineEvent &e)
tbb::concurrent_vector< TimelineEvent > m_events
virtual StatusCode initialize()
Base class used to extend a class implementing other interfaces.
virtual StatusCode finalize()