[IE][VPU] Fix execTimeMcs for VPU (#7442) (#7712)

When serializing execGraph, milliseconds were actually written to the execTimeMcs field. It's just cherry-pick commit from master branch
This commit is contained in:
Anton Dudchenko
2021-09-29 21:16:33 +03:00
committed by GitHub
parent e932a2eda5
commit f00dc87a92

View File

@@ -129,7 +129,8 @@ std::map<std::string, std::string> extractMeta(const StageMetaInfo& stageMeta) {
if (stageMeta.execOrder < 0 || stageMeta.execTime == 0) {
serializationInfo[ExecGraphInfoSerialization::PERF_COUNTER] = "not_executed";
} else {
serializationInfo[ExecGraphInfoSerialization::PERF_COUNTER] = std::to_string(stageMeta.execTime);
int execTimeMcs = stageMeta.execTime * 1000; // ms to mcs
serializationInfo[ExecGraphInfoSerialization::PERF_COUNTER] = std::to_string(execTimeMcs);
}
std::stringstream layoutStream;
int ind = 0;