MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / output

Function output

dbug/dbug_analyze.c:544–559  ·  view source on GitHub ↗
(outf)

Source from the content-addressed store, hash-verified

542 */
543
544void output (outf)
545FILE *outf;
546{
547 unsigned long int sum_calls = 0;
548 unsigned long int sum_time = 0;
549
550 DBUG_ENTER ("output");
551 if (n_items == 0) {
552 fprintf (outf, "%s: No functions to trace\n", my_name);
553 exit (EX_DATAERR);
554 }
555 out_header (outf);
556 out_body (outf, 0,&sum_calls,&sum_time);
557 out_trailer (outf, sum_calls,sum_time);
558 DBUG_VOID_RETURN;
559}
560
561
562#define usage() fprintf (DBUG_FILE,"Usage: %s [-v] [prof-file]\n",my_name)

Callers 1

mainFunction · 0.85

Calls 3

out_headerFunction · 0.85
out_bodyFunction · 0.85
out_trailerFunction · 0.85

Tested by

no test coverage detected