OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [statistics.h] - Blame information for rev 455

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 280 jeremybenn
/* Memory and optimization statistics helpers.
2
   Copyright (C) 2004, 2007, 2008
3
   Free Software Foundation, Inc.
4
   Contributed by Cygnus Solutions.
5
 
6
   This file is part of GCC.
7
 
8
   GCC is free software; you can redistribute it and/or modify it
9
   under the terms of the GNU General Public License as published by
10
   the Free Software Foundation; either version 3, or (at your option)
11
   any later version.
12
 
13
   GCC is distributed in the hope that it will be useful, but WITHOUT
14
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16
   License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with GCC; see the file COPYING3.  If not see
20
   <http://www.gnu.org/licenses/>.  */
21
 
22
#ifndef GCC_STATISTICS
23
#define GCC_STATISTICS
24
 
25
#ifdef GATHER_STATISTICS
26
#define MEM_STAT_DECL , const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function)
27
#define ALONE_MEM_STAT_DECL const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function)
28
#define PASS_MEM_STAT , _loc_name, _loc_line,  _loc_function
29
#define ALONE_PASS_MEM_STAT _loc_name, _loc_line,  _loc_function
30
#define MEM_STAT_INFO , __FILE__, __LINE__, __FUNCTION__
31
#define ALONE_MEM_STAT_INFO __FILE__, __LINE__, __FUNCTION__
32
#else
33
#define MEM_STAT_DECL
34
#define ALONE_MEM_STAT_DECL void
35
#define PASS_MEM_STAT
36
#define ALONE_PASS_MEM_STAT
37
#define MEM_STAT_INFO
38
#define ALONE_MEM_STAT_INFO
39
#endif
40
 
41
struct function;
42
 
43
/* In statistics.c */
44
extern void statistics_early_init (void);
45
extern void statistics_init (void);
46
extern void statistics_fini (void);
47
extern void statistics_fini_pass (void);
48
extern void statistics_counter_event (struct function *, const char *, int);
49
extern void statistics_histogram_event (struct function *, const char *, int);
50
 
51
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.