Lines Matching refs:fileName
43 char fileName[len + sizeof(kHeadSuffix)]; in hprofStartup() local
49 sprintf(fileName, "%s" kHeadSuffix, outputFileName); in hprofStartup()
50 if (access(fileName, F_OK) == 0) { in hprofStartup()
51 LOGE("hprof: temp file %s exists, bailing\n", fileName); in hprofStartup()
56 fp = fopen(fileName, "w+"); in hprofStartup()
58 LOGE("hprof: can't open %s: %s.\n", fileName, strerror(errno)); in hprofStartup()
62 if (unlink(fileName) != 0) { in hprofStartup()
63 LOGW("hprof: WARNING: unable to remove temp file %s\n", fileName); in hprofStartup()
66 LOGI("hprof: dumping VM heap to \"%s\".\n", fileName); in hprofStartup()
130 LOGI("hprof: dumping heap strings to \"%s\".\n", ctx->fileName); in hprofShutdown()
131 fp = fopen(ctx->fileName, "w"); in hprofShutdown()
133 LOGE("can't open %s: %s\n", ctx->fileName, strerror(errno)); in hprofShutdown()
135 free(ctx->fileName); in hprofShutdown()
139 hprofContextInit(ctx, ctx->fileName, fp, true); in hprofShutdown()
179 free(ctx->fileName); in hprofShutdown()