Bug 884473: puts a warning message when compiled with --enable-perf and no env variable is given; r=sstangl

This commit is contained in:
Benjamin Bouvier 2013-07-01 16:35:27 -07:00
parent 19de02b18b
commit f9704ccb5a

View File

@ -35,6 +35,8 @@ js::ion::CheckPerf() {
const char *env = getenv("IONPERF");
if (env == NULL) {
PerfMode = PERF_MODE_NONE;
fprintf(stderr, "Warning: JIT perf reporting requires IONPERF set to \"block\" or \"func\". ");
fprintf(stderr, "Perf mapping will be deactivated.\n");
} else if (!strcmp(env, "none")) {
PerfMode = PERF_MODE_NONE;
} else if (!strcmp(env, "block")) {