Lines 83-91
Link Here
|
83 |
} |
83 |
} |
84 |
profileLog = userData + profileLog; |
84 |
profileLog = userData + profileLog; |
85 |
} |
85 |
} |
86 |
FILE *f= fopen(profileLog.c_str(), "w"); |
86 |
char path[PATH_MAX]; |
|
|
87 |
snprintf(path, PATH_MAX, "%s/.magaglest/profiler.log", getenv("HOME")); |
88 |
FILE *f= fopen(path, "w"); |
87 |
if(f==NULL) |
89 |
if(f==NULL) |
88 |
throw runtime_error("Can not open file: " + profileLog); |
90 |
throw runtime_error("Can not open file: %s",path); |
89 |
|
91 |
|
90 |
fprintf(f, "Profiler Results\n\n"); |
92 |
fprintf(f, "Profiler Results\n\n"); |
91 |
|
93 |
|