fsf_callg_bl.c revision 1.1.1.7
110228Syan/* ==> Do not modify this file!!  It is created automatically
211926Sserb   from fsf_callg_bl.m using the gen-c-prog.awk script.  <== */
310228Syan
410228Syan#include <stdio.h>
510228Syan#include "ansidecl.h"
610228Syan
710228Syanvoid  fsf_callg_blurb (FILE *);
810228Syanvoid
910228Syanfsf_callg_blurb (FILE *file)
1010228Syan{
1110228Syan  fputs ("\n", file);
1210228Syan  fputs (" This table describes the call tree of the program, and was sorted by\n", file);
1310228Syan  fputs (" the total amount of time spent in each function and its children.\n", file);
1410228Syan  fputs ("\n", file);
1510228Syan  fputs (" Each entry in this table consists of several lines.  The line with the\n", file);
1610228Syan  fputs (" index number at the left hand margin lists the current function.\n", file);
1710228Syan  fputs (" The lines above it list the functions that called this function,\n", file);
1810228Syan  fputs (" and the lines below it list the functions this one called.\n", file);
1910228Syan  fputs (" This line lists:\n", file);
2010228Syan  fputs ("     index	A unique number given to each element of the table.\n", file);
2110228Syan  fputs ("		Index numbers are sorted numerically.\n", file);
2210228Syan  fputs ("		The index number is printed next to every function name so\n", file);
2310228Syan  fputs ("		it is easier to look up where the function is in the table.\n", file);
2410228Syan  fputs ("\n", file);
2510228Syan  fputs ("     % time	This is the percentage of the `total' time that was spent\n", file);
2610228Syan  fputs ("		in this function and its children.  Note that due to\n", file);
2710228Syan  fputs ("		different viewpoints, functions excluded by options, etc,\n", file);
2810228Syan  fputs ("		these numbers will NOT add up to 100%.\n", file);
2910228Syan  fputs ("\n", file);
3010228Syan  fputs ("     self	This is the total amount of time spent in this function.\n", file);
3110228Syan  fputs ("\n", file);
3210228Syan  fputs ("     children	This is the total amount of time propagated into this\n", file);
3310228Syan  fputs ("		function by its children.\n", file);
3410228Syan  fputs ("\n", file);
3510228Syan  fputs ("     called	This is the number of times the function was called.\n", file);
3610228Syan  fputs ("		If the function called itself recursively, the number\n", file);
3710228Syan  fputs ("		only includes non-recursive calls, and is followed by\n", file);
3810228Syan  fputs ("		a `+' and the number of recursive calls.\n", file);
3910228Syan  fputs ("\n", file);
4010228Syan  fputs ("     name	The name of the current function.  The index number is\n", file);
4110228Syan  fputs ("		printed after it.  If the function is a member of a\n", file);
4210228Syan  fputs ("		cycle, the cycle number is printed between the\n", file);
4310228Syan  fputs ("		function's name and the index number.\n", file);
4410228Syan  fputs ("\n", file);
4510228Syan  fputs ("\n", file);
4610228Syan  fputs (" For the function's parents, the fields have the following meanings:\n", file);
4710228Syan  fputs ("\n", file);
4810228Syan  fputs ("     self	This is the amount of time that was propagated directly\n", file);
4910228Syan  fputs ("		from the function into this parent.\n", file);
5010228Syan  fputs ("\n", file);
5110228Syan  fputs ("     children	This is the amount of time that was propagated from\n", file);
5210228Syan  fputs ("		the function's children into this parent.\n", file);
5310228Syan  fputs ("\n", file);
5410228Syan  fputs ("     called	This is the number of times this parent called the\n", file);
5510228Syan  fputs ("		function `/' the total number of times the function\n", file);
5610228Syan  fputs ("		was called.  Recursive calls to the function are not\n", file);
5710228Syan  fputs ("		included in the number after the `/'.\n", file);
5810228Syan  fputs ("\n", file);
5910228Syan  fputs ("     name	This is the name of the parent.  The parent's index\n", file);
6010228Syan  fputs ("		number is printed after it.  If the parent is a\n", file);
6110228Syan  fputs ("		member of a cycle, the cycle number is printed between\n", file);
6210228Syan  fputs ("		the name and the index number.\n", file);
6310228Syan  fputs ("\n", file);
6410228Syan  fputs (" If the parents of the function cannot be determined, the word\n", file);
6510228Syan  fputs (" `<spontaneous>' is printed in the `name' field, and all the other\n", file);
6610228Syan  fputs (" fields are blank.\n", file);
6710228Syan  fputs ("\n", file);
6810228Syan  fputs (" For the function's children, the fields have the following meanings:\n", file);
6910228Syan  fputs ("\n", file);
7010228Syan  fputs ("     self	This is the amount of time that was propagated directly\n", file);
7110228Syan  fputs ("		from the child into the function.\n", file);
7210228Syan  fputs ("\n", file);
7310228Syan  fputs ("     children	This is the amount of time that was propagated from the\n", file);
7410228Syan  fputs ("		child's children to the function.\n", file);
7510228Syan  fputs ("\n", file);
7610228Syan  fputs ("     called	This is the number of times the function called\n", file);
7710228Syan  fputs ("		this child `/' the total number of times the child\n", file);
7810228Syan  fputs ("		was called.  Recursive calls by the child are not\n", file);
7910228Syan  fputs ("		listed in the number after the `/'.\n", file);
8010228Syan  fputs ("\n", file);
8110228Syan  fputs ("     name	This is the name of the child.  The child's index\n", file);
8210228Syan  fputs ("		number is printed after it.  If the child is a\n", file);
8310228Syan  fputs ("		member of a cycle, the cycle number is printed\n", file);
8410228Syan  fputs ("		between the name and the index number.\n", file);
8510228Syan  fputs ("\n", file);
8610228Syan  fputs (" If there are any cycles (circles) in the call graph, there is an\n", file);
8710228Syan  fputs (" entry for the cycle-as-a-whole.  This entry shows who called the\n", file);
8810228Syan  fputs (" cycle (as parents) and the members of the cycle (as children.)\n", file);
8910228Syan  fputs (" The `+' recursive calls entry shows the number of function calls that\n", file);
9010228Syan  fputs (" were internal to the cycle, and the calls entry for each member shows,\n", file);
9110228Syan  fputs (" for that member, how many times it was called from other members of\n", file);
9210228Syan  fputs (" the cycle.\n", file);
9310228Syan  fputs ("\n", file);
9410228Syan  fputs ("Copyright (C) 2012-2022 Free Software Foundation, Inc.\n", file);
9510228Syan  fputs ("\n", file);
9610228Syan  fputs ("Copying and distribution of this file, with or without modification,\n", file);
9710228Syan  fputs ("are permitted in any medium without royalty provided the copyright\n", file);
9810228Syan  fputs ("notice and this notice are preserved.\n", file);
9910228Syan}
10010228Syan