xref: /netbsd-src/external/gpl3/binutils.old/dist/gprof/bsd_callg_bl.c (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos /* ==> Do not modify this file!!  It is created automatically
275fd0b74Schristos    from bsd_callg_bl.m using the gen-c-prog.awk script.  <== */
375fd0b74Schristos 
475fd0b74Schristos #include <stdio.h>
575fd0b74Schristos #include "ansidecl.h"
675fd0b74Schristos 
775fd0b74Schristos void  bsd_callg_blurb (FILE *);
875fd0b74Schristos void
bsd_callg_blurb(FILE * file)975fd0b74Schristos bsd_callg_blurb (FILE *file)
1075fd0b74Schristos {
1175fd0b74Schristos   fputs ("\n", file);
1275fd0b74Schristos   fputs ("\n", file);
1375fd0b74Schristos   fputs ("\n", file);
1475fd0b74Schristos   fputs ("call graph profile:\n", file);
1575fd0b74Schristos   fputs ("          The sum of self and descendents is the major sort\n", file);
1675fd0b74Schristos   fputs ("          for this listing.\n", file);
1775fd0b74Schristos   fputs ("\n", file);
1875fd0b74Schristos   fputs ("          function entries:\n", file);
1975fd0b74Schristos   fputs ("\n", file);
2075fd0b74Schristos   fputs ("index     the index of the function in the call graph\n", file);
2175fd0b74Schristos   fputs ("          listing, as an aid to locating it (see below).\n", file);
2275fd0b74Schristos   fputs ("\n", file);
2375fd0b74Schristos   fputs ("%time     the percentage of the total time of the program\n", file);
2475fd0b74Schristos   fputs ("          accounted for by this function and its\n", file);
2575fd0b74Schristos   fputs ("          descendents.\n", file);
2675fd0b74Schristos   fputs ("\n", file);
2775fd0b74Schristos   fputs ("self      the number of seconds spent in this function\n", file);
2875fd0b74Schristos   fputs ("          itself.\n", file);
2975fd0b74Schristos   fputs ("\n", file);
3075fd0b74Schristos   fputs ("descendents\n", file);
3175fd0b74Schristos   fputs ("          the number of seconds spent in the descendents of\n", file);
3275fd0b74Schristos   fputs ("          this function on behalf of this function.\n", file);
3375fd0b74Schristos   fputs ("\n", file);
3475fd0b74Schristos   fputs ("called    the number of times this function is called (other\n", file);
3575fd0b74Schristos   fputs ("          than recursive calls).\n", file);
3675fd0b74Schristos   fputs ("\n", file);
3775fd0b74Schristos   fputs ("self      the number of times this function calls itself\n", file);
3875fd0b74Schristos   fputs ("          recursively.\n", file);
3975fd0b74Schristos   fputs ("\n", file);
4075fd0b74Schristos   fputs ("name      the name of the function, with an indication of\n", file);
4175fd0b74Schristos   fputs ("          its membership in a cycle, if any.\n", file);
4275fd0b74Schristos   fputs ("\n", file);
4375fd0b74Schristos   fputs ("index     the index of the function in the call graph\n", file);
4475fd0b74Schristos   fputs ("          listing, as an aid to locating it.\n", file);
4575fd0b74Schristos   fputs ("\n", file);
4675fd0b74Schristos   fputs ("\n", file);
4775fd0b74Schristos   fputs ("\n", file);
4875fd0b74Schristos   fputs ("          parent listings:\n", file);
4975fd0b74Schristos   fputs ("\n", file);
5075fd0b74Schristos   fputs ("self*     the number of seconds of this function's self time\n", file);
5175fd0b74Schristos   fputs ("          which is due to calls from this parent.\n", file);
5275fd0b74Schristos   fputs ("\n", file);
5375fd0b74Schristos   fputs ("descendents*\n", file);
5475fd0b74Schristos   fputs ("          the number of seconds of this function's\n", file);
5575fd0b74Schristos   fputs ("          descendent time which is due to calls from this\n", file);
5675fd0b74Schristos   fputs ("          parent.\n", file);
5775fd0b74Schristos   fputs ("\n", file);
5875fd0b74Schristos   fputs ("called**  the number of times this function is called by\n", file);
5975fd0b74Schristos   fputs ("          this parent.  This is the numerator of the\n", file);
6075fd0b74Schristos   fputs ("          fraction which divides up the function's time to\n", file);
6175fd0b74Schristos   fputs ("          its parents.\n", file);
6275fd0b74Schristos   fputs ("\n", file);
6375fd0b74Schristos   fputs ("total*    the number of times this function was called by\n", file);
6475fd0b74Schristos   fputs ("          all of its parents.  This is the denominator of\n", file);
6575fd0b74Schristos   fputs ("          the propagation fraction.\n", file);
6675fd0b74Schristos   fputs ("\n", file);
6775fd0b74Schristos   fputs ("parents   the name of this parent, with an indication of the\n", file);
6875fd0b74Schristos   fputs ("          parent's membership in a cycle, if any.\n", file);
6975fd0b74Schristos   fputs ("\n", file);
7075fd0b74Schristos   fputs ("index     the index of this parent in the call graph\n", file);
7175fd0b74Schristos   fputs ("          listing, as an aid in locating it.\n", file);
7275fd0b74Schristos   fputs ("\n", file);
7375fd0b74Schristos   fputs ("\n", file);
7475fd0b74Schristos   fputs ("\n", file);
7575fd0b74Schristos   fputs ("          children listings:\n", file);
7675fd0b74Schristos   fputs ("\n", file);
7775fd0b74Schristos   fputs ("self*     the number of seconds of this child's self time\n", file);
7875fd0b74Schristos   fputs ("          which is due to being called by this function.\n", file);
7975fd0b74Schristos   fputs ("\n", file);
8075fd0b74Schristos   fputs ("descendent*\n", file);
8175fd0b74Schristos   fputs ("          the number of seconds of this child's descendent's\n", file);
8275fd0b74Schristos   fputs ("          time which is due to being called by this\n", file);
8375fd0b74Schristos   fputs ("          function.\n", file);
8475fd0b74Schristos   fputs ("\n", file);
8575fd0b74Schristos   fputs ("called**  the number of times this child is called by this\n", file);
8675fd0b74Schristos   fputs ("          function.  This is the numerator of the\n", file);
8775fd0b74Schristos   fputs ("          propagation fraction for this child.\n", file);
8875fd0b74Schristos   fputs ("\n", file);
8975fd0b74Schristos   fputs ("total*    the number of times this child is called by all\n", file);
9075fd0b74Schristos   fputs ("          functions.  This is the denominator of the\n", file);
9175fd0b74Schristos   fputs ("          propagation fraction.\n", file);
9275fd0b74Schristos   fputs ("\n", file);
9375fd0b74Schristos   fputs ("children  the name of this child, and an indication of its\n", file);
9475fd0b74Schristos   fputs ("          membership in a cycle, if any.\n", file);
9575fd0b74Schristos   fputs ("\n", file);
9675fd0b74Schristos   fputs ("index     the index of this child in the call graph listing,\n", file);
9775fd0b74Schristos   fputs ("          as an aid to locating it.\n", file);
9875fd0b74Schristos   fputs ("\n", file);
9975fd0b74Schristos   fputs ("\n", file);
10075fd0b74Schristos   fputs ("\n", file);
10175fd0b74Schristos   fputs ("          * these fields are omitted for parents (or\n", file);
10275fd0b74Schristos   fputs ("          children) in the same cycle as the function.  If\n", file);
10375fd0b74Schristos   fputs ("          the function (or child) is a member of a cycle,\n", file);
10475fd0b74Schristos   fputs ("          the propagated times and propagation denominator\n", file);
10575fd0b74Schristos   fputs ("          represent the self time and descendent time of the\n", file);
10675fd0b74Schristos   fputs ("          cycle as a whole.\n", file);
10775fd0b74Schristos   fputs ("\n", file);
10875fd0b74Schristos   fputs ("          ** static-only parents and children are indicated\n", file);
10975fd0b74Schristos   fputs ("          by a call count of 0.\n", file);
11075fd0b74Schristos   fputs ("\n", file);
11175fd0b74Schristos   fputs ("\n", file);
11275fd0b74Schristos   fputs ("\n", file);
11375fd0b74Schristos   fputs ("          cycle listings:\n", file);
11475fd0b74Schristos   fputs ("          the cycle as a whole is listed with the same\n", file);
11575fd0b74Schristos   fputs ("          fields as a function entry.  Below it are listed\n", file);
11675fd0b74Schristos   fputs ("          the members of the cycle, and their contributions\n", file);
11775fd0b74Schristos   fputs ("          to the time and call counts of the cycle.\n", file);
11875fd0b74Schristos   fputs ("\n", file);
119*e992f068Schristos   fputs ("Copyright (C) 2012-2022 Free Software Foundation, Inc.\n", file);
12075fd0b74Schristos   fputs ("\n", file);
12175fd0b74Schristos   fputs ("Copying and distribution of this file, with or without modification,\n", file);
12275fd0b74Schristos   fputs ("are permitted in any medium without royalty provided the copyright\n", file);
12375fd0b74Schristos   fputs ("notice and this notice are preserved.\n", file);
12475fd0b74Schristos }
125