Lines Matching defs:std
30 static void PrintEventInfo(const std::map<std::string, std::string>& eventInfo, const std::string& msg)
33 HIVIEW_LOGI("eventInfo size : %{public}s", std::to_string(eventInfo.size()).c_str());
35 std::istringstream iss(val);
36 std::string line;
38 while (std::getline(iss, line)) {
44 static std::map<std::string, std::string> SmartParser(const std::string& eventPath, const std::string& eventType)
46 auto startTime = std::chrono::high_resolution_clock::now();
48 auto endTime = std::chrono::high_resolution_clock::now();
49 auto diffTime = std::chrono::duration_cast<std::chrono::milliseconds>(endTime - startTime).count();
50 std::cout << "SmartParser::Analysis running time : " << diffTime << " ms" << std::endl;
57 static void Tbox(std::map<std::string, std::string>& eventInfo, std::string& eventType)
59 auto startTime = std::chrono::high_resolution_clock::now();
61 auto endTime = std::chrono::high_resolution_clock::now();
62 auto diffTime = std::chrono::duration_cast<std::chrono::milliseconds>(endTime - startTime).count();
63 std::cout << "Tbox::FilterTrace running time : " << diffTime << " ms" << std::endl;
70 std::string eventType;
71 std::string logPath;
73 if (std::string(argv[i]) == "-t") {
77 } else if (std::string(argv[i]) == "-f") {
85 std::cout << "Usage:" << std::endl;
86 std::cout << "\t" << argv[0] << "-t eventType -f filePath" << std::endl;
87 std::cout << "\teventType\t" <<
88 "The event name must match the event name configured in the configuration file." << std::endl;
89 std::cout << "\tfilePath\t" <<
90 "The parsed file path must match the path matching rule configured in the configuration file." << std::endl;
93 std::cout << ">>>>> eventType : " << eventType << std::endl;
94 std::cout << ">>>>> logPath : " << logPath << std::endl;
95 std::cout << std::endl;