Back to index

cell-binutils  2.17cvs20070401
gmon_out.h
Go to the documentation of this file.
00001 /* gmon_out.h
00002 
00003    Copyright 2000, 2001, 2002 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 /* A gmon.out file consists of a header (defined by gmon_hdr) followed
00022    by a sequence of records.  Each record starts with a one-byte tag
00023    identifying the type of records, followed by records specific data.  */
00024 #ifndef gmon_out_h
00025 #define gmon_out_h
00026 
00027 #define       GMON_MAGIC    "gmon" /* magic cookie */
00028 #define GMON_VERSION 1      /* version number */
00029 
00030 /* Raw header as it appears on file (without padding).  */
00031 struct gmon_hdr
00032   {
00033     char cookie[4];
00034     char version[4];
00035     char spare[3 * 4];
00036   };
00037 
00038 /* Types of records in this file.  */
00039 typedef enum
00040   {
00041     GMON_TAG_TIME_HIST = 0, GMON_TAG_CG_ARC = 1, GMON_TAG_BB_COUNT = 2
00042   }
00043 GMON_Record_Tag;
00044 
00045 #endif /* gmon_out_h */