32 const std::string SEPARATOR =
"|";
38 const std::string& executableName,
39 const std::string& timestampUnit,
40 const std::string& eventName,
41 const std::string& parentName,
42 const std::string& functionName)
44 std::ostringstream logstring;
45 logstring << processId << SEPARATOR << timestamp << SEPARATOR << timestampUnit << SEPARATOR
46 << eventName << SEPARATOR << parentName << SEPARATOR << functionName << SEPARATOR;
49 eventList.push_back(logstring.str());
54 armarx::Profiler::FileLoggingStrategy::writeFile()
56 std::ofstream outputFile((
id +
".trace").c_str());
57 writeHeader(outputFile);
59 for (std::string logline : eventList)
61 outputFile << logline << std::endl;
68 armarx::Profiler::FileLoggingStrategy::writeHeader(std::ostream& outputStream)
70 outputStream <<
"ProcessID" << SEPARATOR <<
"Timestamp" << SEPARATOR <<
"TimestampUnit"
71 << SEPARATOR <<
"EventType" << SEPARATOR <<
"Parent" << SEPARATOR <<
"Function"
72 << SEPARATOR << std::endl;