statistics.h revision 169690
1130331Sanholt/* Memory statistics helpers.
2145132Sanholt   Copyright (C) 2004
3145132Sanholt   Free Software Foundation, Inc.
4145132Sanholt   Contributed by Cygnus Solutions.
5130331Sanholt
6130331Sanholt   This file is part of GCC.
7130331Sanholt
8130331Sanholt   GCC is free software; you can redistribute it and/or modify it
9182080Srnoland   under the terms of the GNU General Public License as published by
10182080Srnoland   the Free Software Foundation; either version 2, or (at your option)
11182080Srnoland   any later version.
12182080Srnoland
13182080Srnoland   GCC is distributed in the hope that it will be useful, but WITHOUT
14182080Srnoland   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15182080Srnoland   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16157617Sanholt   License for more details.
17145132Sanholt
18157617Sanholt   You should have received a copy of the GNU General Public License
19157617Sanholt   along with GCC; see the file COPYING.  If not, write to the Free
20157617Sanholt   the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
21157617Sanholt   MA 02110-1301, USA.  */
22157617Sanholt
23157617Sanholt#ifndef GCC_STATISTICS
24145132Sanholt#define GCC_STATISTICS
25157617Sanholt#ifdef GATHER_STATISTICS
26157617Sanholt#define MEM_STAT_DECL , const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function)
27157617Sanholt#define PASS_MEM_STAT , _loc_name, _loc_line,  _loc_function
28145132Sanholt#define MEM_STAT_INFO , __FILE__, __LINE__, __FUNCTION__
29157617Sanholt#else
30157617Sanholt#define MEM_STAT_DECL
31182080Srnoland#define PASS_MEM_STAT
32145132Sanholt#define MEM_STAT_INFO
33145132Sanholt#endif
34182080Srnoland#endif
35182080Srnoland