Lines Matching refs:ctx
58 hprofContextInit(hprof_context_t *ctx, char *fileName, FILE *fp, in hprofContextInit() argument
61 memset(ctx, 0, sizeof (*ctx)); in hprofContextInit()
62 ctx->fileName = fileName; in hprofContextInit()
63 ctx->fp = fp; in hprofContextInit()
65 ctx->curRec.allocLen = 128; in hprofContextInit()
66 ctx->curRec.body = malloc(ctx->curRec.allocLen); in hprofContextInit()
135 hprofFlushCurrentRecord(hprof_context_t *ctx) in hprofFlushCurrentRecord() argument
137 return hprofFlushRecord(&ctx->curRec, ctx->fp); in hprofFlushCurrentRecord()
141 hprofStartNewRecord(hprof_context_t *ctx, u1 tag, u4 time) in hprofStartNewRecord() argument
143 hprof_record_t *rec = &ctx->curRec; in hprofStartNewRecord()
146 err = hprofFlushRecord(rec, ctx->fp); in hprofStartNewRecord()