1 /* ------------------------------------------------------------------------
2 * $Id: cgprof.h,v 1.2 2003/08/01 14:50:50 panne Exp $
4 * Copyright (C) 1995-2000 University of Oxford
6 * Permission to use, copy, modify, and distribute this software,
7 * and to incorporate it, in whole or in part, into other software,
8 * is hereby granted without fee, provided that
9 * (1) the above copyright notice and this permission notice appear in
10 * all copies of the source code, and the above copyright notice
11 * appear in clearly visible form on all supporting documentation
12 * and distribution media;
13 * (2) modified versions of this software be accompanied by a complete
14 * change history describing author, date, and modifications made;
16 * (3) any redistribution of the software, in original or modified
17 * form, be without fee and subject to these same conditions.
18 * --------------------------------------------------------------------- */
26 /* -----------------------------------------------------------------------------
27 * Data structures associated with parsed data
28 * -------------------------------------------------------------------------- */
30 /* -----------------------------------------------------------------------------
32 * -------------------------------------------------------------------------- */
40 double proc_comp_idle;
41 long int proc_hrel_in;
42 long int proc_hrel_out;
46 double comp_max, comp_avg, comp_min;
47 double comm_max, comm_avg, comm_min;
48 double comp_idle_max, comp_idle_avg, comp_idle_min;
49 long int hrel_max, hrel_avg, hrel_min;
50 object_cost_proc *proc;
54 /* -----------------------------------------------------------------------------
55 * Sequence of cost centres
56 * -------------------------------------------------------------------------- */
65 #define RAW_PROFILE_INIT_SIZE 100
66 extern int raw_profile_next;
67 extern int raw_profile_size;
68 extern parsed_cost_object *raw_profile;
70 /* -----------------------------------------------------------------------------
72 * -------------------------------------------------------------------------- */
76 extern void readRawProfile(FILE *,int*,int);
77 extern void printRawProfile();
78 extern void add_costs(object_cost *,object_cost);
79 extern void createConnectivityMatrix(int,Matrix *,Matrix *,int *,int);
80 extern void printConnectivityMatrix(Matrix,Matrix,int);