Home | History | Annotate | Download | only in hprof

Lines Matching refs:ctx

65 hprofContextInit(hprof_context_t *ctx, char *fileName, FILE *fp,
68 memset(ctx, 0, sizeof (*ctx));
77 fp = open_memstream(&ctx->fileDataPtr, &ctx->fileDataSize);
85 ctx->directToDdms = directToDdms;
86 ctx->fileName = fileName;
87 ctx->fp = fp;
89 ctx->curRec.allocLen = 128;
90 ctx->curRec.body = malloc(ctx->curRec.allocLen);
159 hprofFlushCurrentRecord(hprof_context_t *ctx)
161 return hprofFlushRecord(&ctx->curRec, ctx->fp);
165 hprofStartNewRecord(hprof_context_t *ctx, u1 tag, u4 time)
167 hprof_record_t *rec = &ctx->curRec;
170 err = hprofFlushRecord(rec, ctx->fp);