void trace_dump_ret_begin(void) { if (!dumping) return; trace_dump_indent(2); trace_dump_tag_begin("ret"); }
void trace_dump_arg_begin(const char *name) { if (!dumping) return; trace_dump_indent(2); trace_dump_tag_begin1("arg", "name", name); }
void trace_dump_call_end_locked(void) { if (!dumping) return; trace_dump_indent(1); trace_dump_tag_end("call"); trace_dump_newline(); fflush(stream); }
static void trace_dump_call_time(int64_t time) { if (stream) { trace_dump_indent(2); trace_dump_tag_begin("time"); trace_dump_int(time); trace_dump_tag_end("time"); trace_dump_newline(); } }
void trace_dump_call_end_locked(void) { int64_t call_end_time; if (!dumping) return; call_end_time = os_time_get(); trace_dump_call_time(call_end_time - call_start_time); trace_dump_indent(1); trace_dump_tag_end("call"); trace_dump_newline(); fflush(stream); }
void trace_dump_call_begin_locked(const char *klass, const char *method) { if (!dumping) return; ++call_no; trace_dump_indent(1); trace_dump_writes("<call no=\'"); trace_dump_writef("%lu", call_no); trace_dump_writes("\' class=\'"); trace_dump_escape(klass); trace_dump_writes("\' method=\'"); trace_dump_escape(method); trace_dump_writes("\'>"); trace_dump_newline(); }