Lines Matching refs:ConsoleLog
155 static void ConsoleLog(const std::string& logInfo) in ConsoleLog() function
171 ConsoleLog("error: running_state is invalid."); in GetStateInfo()
200 ConsoleLog("error: open " + inSpecPath + " failed."); in WriteStrToFile()
205 ConsoleLog("error: can not write " + inSpecPath); in WriteStrToFile()
287 ConsoleLog("error: the parameter is set incorrectly, " + GetStateInfo(g_runningState) + in SetRunningState()
300 ConsoleLog("error: output file is illegal"); in CheckOutputFile()
317 ConsoleLog("error: buffer size is illegal input. eg: \"--buffer_size 1024\"."); in ParseLongOpt()
320 …ConsoleLog("error: buffer size must be from 256 KB to " + std::to_string(maxBufferSizeKB / KB_PER_… in ParseLongOpt()
330 ConsoleLog("error: \"--trace_clock\" is illegal input. eg: \"--trace_clock boot\"."); in ParseLongOpt()
337 ConsoleLog("error: the time is illegal input. eg: \"--time 5\"."); in ParseLongOpt()
340 …ConsoleLog("error: \"-t " + std::string(optarg) + "\" to be greater than zero. eg: \"--time 5\"."); in ParseLongOpt()
363 ConsoleLog("error: \"--record\" is set incorrectly. eg: \"--trace_begin --record\"," in ParseLongOpt()
380 ConsoleLog("error: file size is illegal input. eg: \"--file_size 1024\"."); in ParseLongOpt()
383 … ConsoleLog("error: file size must be from 50 MB to 500 MB. eg: \"--file_size 102400\"."); in ParseLongOpt()
403 ConsoleLog("error: buffer size is illegal input. eg: \"--buffer_size 1024\"."); in ParseOpt()
406 …ConsoleLog("error: buffer size must be from 256 KB to " + std::to_string(maxBufferSizeKB / KB_PER_… in ParseOpt()
421 ConsoleLog("error: the time is illegal input. eg: \"--time 5\"."); in ParseOpt()
424 …ConsoleLog("error: \"-t " + std::string(optarg) + "\" to be greater than zero. eg: \"--time 5\"."); in ParseOpt()
454 ConsoleLog(errorInfo); in AddTagItems()
501 ConsoleLog("error: zip stream buffer init failed."); in DumpCompressedTrace()
506 ConsoleLog("error: initializing zlib failed ret " + std::to_string(ret)); in DumpCompressedTrace()
512 ConsoleLog("error: couldn't allocate buffers."); in DumpCompressedTrace()
524 ConsoleLog("error: reading trace, errno " + std::to_string(errno)); in DumpCompressedTrace()
534 ConsoleLog("error: writing deflated trace, errno " + std::to_string(errno)); in DumpCompressedTrace()
545 ConsoleLog("error: writing deflated trace, errno " + std::to_string(errno)); in DumpCompressedTrace()
550 ConsoleLog("error: deflate failed with errno " + std::to_string(errno)); in DumpCompressedTrace()
552 ConsoleLog("error: deflate failed return " + std::to_string(ret)); in DumpCompressedTrace()
560 ConsoleLog("error: cleaning up zlib return " + std::to_string(ret)); in DumpCompressedTrace()
570 ConsoleLog("error: opening " + tracePath + ", errno: " + std::to_string(errno)); in DumpTrace()
581 ConsoleLog("error: opening " + g_traceArgs.output + ", errno: " + std::to_string(errno)); in DumpTrace()
603 ConsoleLog("trace read done, output: " + g_traceArgs.output); in DumpTrace()
612 ConsoleLog("error: hitrace_utils.json file is damaged."); in InitAllSupportTags()
621 ConsoleLog("error: tag is empty, please add."); in ReloadTraceArgs()
648 … ConsoleLog("warning: The current state does not support specifying the file size, file size: " + in ReloadTraceArgs()
654 ConsoleLog("args: " + args); in ReloadTraceArgs()
663 ConsoleLog("warning: The current state does not support specifying the output file path, " + in HandleRecordingShortRaw()
668 … ConsoleLog("error: OpenRecording failed, errorCode(" + std::to_string(openRet.retCode) +")"); in HandleRecordingShortRaw()
680 ConsoleLog("error: RecordingOn failed, errorCode(" + std::to_string(recOnRet.retCode) +")"); in HandleRecordingShortRaw()
684 ConsoleLog("start capture, please wait " + std::to_string(g_traceArgs.duration) +"s ..."); in HandleRecordingShortRaw()
689 … ConsoleLog("error: RecordingOff failed, errorCode(" + std::to_string(recOffRet.retCode) +")"); in HandleRecordingShortRaw()
693 ConsoleLog("capture done, output files:"); in HandleRecordingShortRaw()
706 … ConsoleLog("error: OpenRecording failed, errorCode(" + std::to_string(openRet.retCode) +")"); in HandleRecordingShortText()
715 ConsoleLog("start capture, please wait " + std::to_string(g_traceArgs.duration) +"s ..."); in HandleRecordingShortText()
722 ConsoleLog("capture done, start to read trace."); in HandleRecordingShortText()
733 ConsoleLog("warning: The current state does not support specifying the output file path, " + in HandleRecordingLongBegin()
738 … ConsoleLog("error: OpenRecording failed, errorCode(" + std::to_string(openRet.retCode) +")"); in HandleRecordingLongBegin()
747 ConsoleLog("OpenRecording done."); in HandleRecordingLongBegin()
754 ConsoleLog("start to read trace."); in HandleRecordingLongDump()
763 ConsoleLog("start to read trace."); in HandleRecordingLongFinish()
772 ConsoleLog("end capture trace."); in HandleRecordingLongFinishNodump()
780 ConsoleLog("warning: The current state does not support specifying the output file path, " + in HandleRecordingLongBeginRecord()
785 … ConsoleLog("error: OpenRecording failed, errorCode(" + std::to_string(openRet.retCode) +")"); in HandleRecordingLongBeginRecord()
792 ConsoleLog("error: RecordingOn failed, errorCode(" + std::to_string(recOnRet.retCode) +")"); in HandleRecordingLongBeginRecord()
796 ConsoleLog("trace capturing. "); in HandleRecordingLongBeginRecord()
804 … ConsoleLog("error: RecordingOff failed, errorCode(" + std::to_string(recOffRet.retCode) +")"); in HandleRecordingLongFinishRecord()
808 ConsoleLog("capture done, output files:"); in HandleRecordingLongFinishRecord()
821 ConsoleLog("error: OpenSnapshot failed, errorCode(" + std::to_string(openRet.retCode) +")"); in HandleOpenSnapshot()
830 ConsoleLog("OpenSnapshot done."); in HandleOpenSnapshot()
839 ConsoleLog("error: DumpSnapshot failed, errorCode(" + std::to_string(dumpRet.retCode) +")"); in HandleDumpSnapshot()
842 ConsoleLog("DumpSnapshot done, output:"); in HandleDumpSnapshot()
855 … ConsoleLog("error: CloseSnapshot failed, errorCode(" + std::to_string(closeRet.retCode) +")"); in HandleCloseSnapshot()
858 ConsoleLog("CloseSnapshot done."); in HandleCloseSnapshot()
875 ConsoleLog("error: not in developermode, exit"); in main()
880 ConsoleLog("error: the number of input arguments exceeds the upper limit."); in main()
886 ConsoleLog("error: traceCollector create failed, exit."); in main()
893 ConsoleLog("error: trace isn't mounted, exit."); in main()
902 ConsoleLog("error: parsing args failed, exit."); in main()
912 … ConsoleLog(std::string(argv[0]) + " enter, running_state is " + GetStateInfo(g_runningState)); in main()