Back to index

cell-binutils  2.17cvs20070401
hist.h
Go to the documentation of this file.
00001 /* hist.h
00002 
00003    Copyright 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc.
00004 
00005 This file is part of GNU Binutils.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #ifndef hist_h
00022 #define hist_h
00023 
00024 extern bfd_vma s_lowpc;            /* Lowpc from the profile file.  */
00025 extern bfd_vma s_highpc;    /* Highpc from the profile file.  */
00026 extern bfd_vma lowpc, highpc;      /* Range profiled, in UNIT's.  */
00027 extern unsigned int hist_num_bins; /* Number of histogram bins.  */
00028 extern int *hist_sample;    /* Code histogram.  */
00029 
00030 /* Scale factor converting samples to pc values:
00031    each sample covers HIST_SCALE bytes.  */
00032 extern double hist_scale;
00033 
00034 
00035 extern void hist_read_rec        (FILE *, const char *);
00036 extern void hist_write_hist      (FILE *, const char *);
00037 extern void hist_assign_samples  (void);
00038 extern void hist_print           (void);
00039 
00040 #endif /* hist_h */