6 #include "TimingRecorderHydra.h" 8 #include <mcrt_dataio/engine/merger/GlobalNodeInfo.h> 9 #include <scene_rdl2/common/grid_util/Parser.h> 19 TimingLogEvent(
int rankId,
float timeStamp,
float localTimeStamp,
const std::string& description)
21 , mTimeStamp(timeStamp)
22 , mLocalTimeStamp(localTimeStamp)
23 , mDescription(description)
26 int rankIdLen()
const;
27 int secStrLenTimeStamp()
const {
return secStrLen(mTimeStamp); }
28 int secStrLenLocalTimeStamp()
const {
return secStrLen(mLocalTimeStamp); }
31 std::string show(
int rankIdLen = 0,
33 int maxLocalTimeLen = 0,
34 int maxDeltaTimeLen = 0,
39 std::string showClient()
const;
40 std::string showRankId()
const;
42 static int secStrLen(
float sec);
48 float mLocalTimeStamp;
49 std::string mDescription;
63 void setBaseTime(uint64_t time) { mBaseTime = time; }
64 void setRecvImgSenderMachineId(
const std::string& name) { mRecvImgSenderMachineId = name; }
68 void enqEvent(
int rankId,
float timeStamp,
float localTimeStamp,
const std::string& description) {
69 mEventTable.emplace_back(rankId, timeStamp, localTimeStamp, description);
72 std::string show()
const;
76 std::string mRecvImgSenderMachineId;
78 std::vector<TimingLogEvent> mEventTable;
87 using Arg = scene_rdl2::grid_util::Arg;
88 using Parser = scene_rdl2::grid_util::Parser;
92 void setTimingRecorderHydra(std::shared_ptr<TimingRecorderHydra> timingRecorderHydra);
94 Parser& getParser() {
return mParser; }
97 using TimingLogShPtr = std::shared_ptr<TimingLog>;
99 void parserConfigure();
101 TimingLogShPtr make1stRecvImgTimingLogHydra()
const;
102 void makeTimingLogMcrt(std::shared_ptr<McrtNodeInfo> nodeInfo, TimingLogShPtr log)
const;
104 float deltaSecMcrtToClient(
float mcrtDeltaSec, std::shared_ptr<McrtNodeInfo> nodeInfo)
const;
106 std::string show1stRecvImgLogHydra()
const;
110 GlobalNodeInfo& mGlobalNodeInfo;
111 std::shared_ptr<TimingRecorderHydra> mTimingRecorderHydra;
Definition: TimingAnalysis.h:13
Definition: TimingAnalysis.h:52
Definition: ClientReceiverConsoleDriver.cc:9
Definition: TimingAnalysis.h:81