xref: /netbsd-src/external/gpl3/binutils/dist/gprof/bsd_callg_bl.c (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
12a6b7db3Sskrll /* ==> Do not modify this file!!  It is created automatically
22a6b7db3Sskrll    from bsd_callg_bl.m using the gen-c-prog.awk script.  <== */
32a6b7db3Sskrll 
42a6b7db3Sskrll #include <stdio.h>
52a6b7db3Sskrll #include "ansidecl.h"
62a6b7db3Sskrll 
72a6b7db3Sskrll void  bsd_callg_blurb (FILE *);
82a6b7db3Sskrll void
bsd_callg_blurb(FILE * file)98cbf5cb7Schristos bsd_callg_blurb (FILE *file)
102a6b7db3Sskrll {
112a6b7db3Sskrll   fputs ("\n", file);
122a6b7db3Sskrll   fputs ("\n", file);
132a6b7db3Sskrll   fputs ("\n", file);
142a6b7db3Sskrll   fputs ("call graph profile:\n", file);
152a6b7db3Sskrll   fputs ("          The sum of self and descendents is the major sort\n", file);
162a6b7db3Sskrll   fputs ("          for this listing.\n", file);
172a6b7db3Sskrll   fputs ("\n", file);
182a6b7db3Sskrll   fputs ("          function entries:\n", file);
192a6b7db3Sskrll   fputs ("\n", file);
202a6b7db3Sskrll   fputs ("index     the index of the function in the call graph\n", file);
212a6b7db3Sskrll   fputs ("          listing, as an aid to locating it (see below).\n", file);
222a6b7db3Sskrll   fputs ("\n", file);
232a6b7db3Sskrll   fputs ("%time     the percentage of the total time of the program\n", file);
242a6b7db3Sskrll   fputs ("          accounted for by this function and its\n", file);
252a6b7db3Sskrll   fputs ("          descendents.\n", file);
262a6b7db3Sskrll   fputs ("\n", file);
272a6b7db3Sskrll   fputs ("self      the number of seconds spent in this function\n", file);
282a6b7db3Sskrll   fputs ("          itself.\n", file);
292a6b7db3Sskrll   fputs ("\n", file);
302a6b7db3Sskrll   fputs ("descendents\n", file);
312a6b7db3Sskrll   fputs ("          the number of seconds spent in the descendents of\n", file);
322a6b7db3Sskrll   fputs ("          this function on behalf of this function.\n", file);
332a6b7db3Sskrll   fputs ("\n", file);
342a6b7db3Sskrll   fputs ("called    the number of times this function is called (other\n", file);
352a6b7db3Sskrll   fputs ("          than recursive calls).\n", file);
362a6b7db3Sskrll   fputs ("\n", file);
372a6b7db3Sskrll   fputs ("self      the number of times this function calls itself\n", file);
382a6b7db3Sskrll   fputs ("          recursively.\n", file);
392a6b7db3Sskrll   fputs ("\n", file);
402a6b7db3Sskrll   fputs ("name      the name of the function, with an indication of\n", file);
412a6b7db3Sskrll   fputs ("          its membership in a cycle, if any.\n", file);
422a6b7db3Sskrll   fputs ("\n", file);
432a6b7db3Sskrll   fputs ("index     the index of the function in the call graph\n", file);
442a6b7db3Sskrll   fputs ("          listing, as an aid to locating it.\n", file);
452a6b7db3Sskrll   fputs ("\n", file);
462a6b7db3Sskrll   fputs ("\n", file);
472a6b7db3Sskrll   fputs ("\n", file);
482a6b7db3Sskrll   fputs ("          parent listings:\n", file);
492a6b7db3Sskrll   fputs ("\n", file);
502a6b7db3Sskrll   fputs ("self*     the number of seconds of this function's self time\n", file);
512a6b7db3Sskrll   fputs ("          which is due to calls from this parent.\n", file);
522a6b7db3Sskrll   fputs ("\n", file);
532a6b7db3Sskrll   fputs ("descendents*\n", file);
542a6b7db3Sskrll   fputs ("          the number of seconds of this function's\n", file);
552a6b7db3Sskrll   fputs ("          descendent time which is due to calls from this\n", file);
562a6b7db3Sskrll   fputs ("          parent.\n", file);
572a6b7db3Sskrll   fputs ("\n", file);
582a6b7db3Sskrll   fputs ("called**  the number of times this function is called by\n", file);
592a6b7db3Sskrll   fputs ("          this parent.  This is the numerator of the\n", file);
602a6b7db3Sskrll   fputs ("          fraction which divides up the function's time to\n", file);
612a6b7db3Sskrll   fputs ("          its parents.\n", file);
622a6b7db3Sskrll   fputs ("\n", file);
632a6b7db3Sskrll   fputs ("total*    the number of times this function was called by\n", file);
642a6b7db3Sskrll   fputs ("          all of its parents.  This is the denominator of\n", file);
652a6b7db3Sskrll   fputs ("          the propagation fraction.\n", file);
662a6b7db3Sskrll   fputs ("\n", file);
672a6b7db3Sskrll   fputs ("parents   the name of this parent, with an indication of the\n", file);
682a6b7db3Sskrll   fputs ("          parent's membership in a cycle, if any.\n", file);
692a6b7db3Sskrll   fputs ("\n", file);
702a6b7db3Sskrll   fputs ("index     the index of this parent in the call graph\n", file);
712a6b7db3Sskrll   fputs ("          listing, as an aid in locating it.\n", file);
722a6b7db3Sskrll   fputs ("\n", file);
732a6b7db3Sskrll   fputs ("\n", file);
742a6b7db3Sskrll   fputs ("\n", file);
752a6b7db3Sskrll   fputs ("          children listings:\n", file);
762a6b7db3Sskrll   fputs ("\n", file);
772a6b7db3Sskrll   fputs ("self*     the number of seconds of this child's self time\n", file);
782a6b7db3Sskrll   fputs ("          which is due to being called by this function.\n", file);
792a6b7db3Sskrll   fputs ("\n", file);
802a6b7db3Sskrll   fputs ("descendent*\n", file);
812a6b7db3Sskrll   fputs ("          the number of seconds of this child's descendent's\n", file);
822a6b7db3Sskrll   fputs ("          time which is due to being called by this\n", file);
832a6b7db3Sskrll   fputs ("          function.\n", file);
842a6b7db3Sskrll   fputs ("\n", file);
852a6b7db3Sskrll   fputs ("called**  the number of times this child is called by this\n", file);
862a6b7db3Sskrll   fputs ("          function.  This is the numerator of the\n", file);
872a6b7db3Sskrll   fputs ("          propagation fraction for this child.\n", file);
882a6b7db3Sskrll   fputs ("\n", file);
892a6b7db3Sskrll   fputs ("total*    the number of times this child is called by all\n", file);
902a6b7db3Sskrll   fputs ("          functions.  This is the denominator of the\n", file);
912a6b7db3Sskrll   fputs ("          propagation fraction.\n", file);
922a6b7db3Sskrll   fputs ("\n", file);
932a6b7db3Sskrll   fputs ("children  the name of this child, and an indication of its\n", file);
942a6b7db3Sskrll   fputs ("          membership in a cycle, if any.\n", file);
952a6b7db3Sskrll   fputs ("\n", file);
962a6b7db3Sskrll   fputs ("index     the index of this child in the call graph listing,\n", file);
972a6b7db3Sskrll   fputs ("          as an aid to locating it.\n", file);
982a6b7db3Sskrll   fputs ("\n", file);
992a6b7db3Sskrll   fputs ("\n", file);
1002a6b7db3Sskrll   fputs ("\n", file);
1012a6b7db3Sskrll   fputs ("          * these fields are omitted for parents (or\n", file);
1022a6b7db3Sskrll   fputs ("          children) in the same cycle as the function.  If\n", file);
1032a6b7db3Sskrll   fputs ("          the function (or child) is a member of a cycle,\n", file);
1042a6b7db3Sskrll   fputs ("          the propagated times and propagation denominator\n", file);
1052a6b7db3Sskrll   fputs ("          represent the self time and descendent time of the\n", file);
1062a6b7db3Sskrll   fputs ("          cycle as a whole.\n", file);
1072a6b7db3Sskrll   fputs ("\n", file);
1082a6b7db3Sskrll   fputs ("          ** static-only parents and children are indicated\n", file);
1092a6b7db3Sskrll   fputs ("          by a call count of 0.\n", file);
1102a6b7db3Sskrll   fputs ("\n", file);
1112a6b7db3Sskrll   fputs ("\n", file);
1122a6b7db3Sskrll   fputs ("\n", file);
1132a6b7db3Sskrll   fputs ("          cycle listings:\n", file);
1142a6b7db3Sskrll   fputs ("          the cycle as a whole is listed with the same\n", file);
1152a6b7db3Sskrll   fputs ("          fields as a function entry.  Below it are listed\n", file);
1162a6b7db3Sskrll   fputs ("          the members of the cycle, and their contributions\n", file);
1172a6b7db3Sskrll   fputs ("          to the time and call counts of the cycle.\n", file);
1182a6b7db3Sskrll   fputs ("\n", file);
119*cb63e24eSchristos   fputs ("Copyright (C) 2012-2024 Free Software Foundation, Inc.\n", file);
1209573673dSchristos   fputs ("\n", file);
1219573673dSchristos   fputs ("Copying and distribution of this file, with or without modification,\n", file);
1229573673dSchristos   fputs ("are permitted in any medium without royalty provided the copyright\n", file);
1239573673dSchristos   fputs ("notice and this notice are preserved.\n", file);
1242a6b7db3Sskrll }
125