应用性能监控全链路版
系统 | 可能的原因 |
通用 | database路径参数非法或无权限。 |
Windows | 基本上都是parfait_crash_handler.exe路径错误,检查路径。 Windows下,如果基于QT的QCoreApplication::applicationDirPath()去构造路径,会导致路径设置不对,建议使用windows API GetModuleFileName来获取文件路径,参考示例: char szCurrentFilePath[1024]; RtlZeroMemory(szCurrentFilePath, sizeof(szCurrentFilePath)); GetModuleFileNameA(NULL, (LPSTR)szCurrentFilePath, sizeof(szCurrentFilePath)); PathRemoveFileSpecA((LPSTR)szCurrentFilePath); QString szCurrentDir = QString(szCurrentFilePath) + "\\crash\\"; parfait_wrapper->InitCrashServer(szCurrentDir.toStdString().c_str()); |
Mac |
|