File: pystats.h

package info (click to toggle)
python3.14 3.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 127,172 kB
  • sloc: python: 747,410; ansic: 714,407; xml: 31,250; sh: 5,989; cpp: 4,063; makefile: 1,993; objc: 787; lisp: 502; javascript: 136; asm: 75; csh: 12
file content (28 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Statistics on Python performance (public API).
//
// Define _Py_INCREF_STAT_INC() and _Py_DECREF_STAT_INC() used by Py_INCREF()
// and Py_DECREF().
//
// See Include/cpython/pystats.h for the full API.

#ifndef Py_PYSTATS_H
#define Py_PYSTATS_H
#ifdef __cplusplus
extern "C" {
#endif

#if defined(Py_STATS) && !defined(Py_LIMITED_API)
#  define Py_CPYTHON_PYSTATS_H
#  include "cpython/pystats.h"
#  undef Py_CPYTHON_PYSTATS_H
#else
#  define _Py_INCREF_STAT_INC() ((void)0)
#  define _Py_DECREF_STAT_INC() ((void)0)
#  define _Py_INCREF_IMMORTAL_STAT_INC() ((void)0)
#  define _Py_DECREF_IMMORTAL_STAT_INC() ((void)0)
#endif  // !Py_STATS

#ifdef __cplusplus
}
#endif
#endif   // !Py_PYSTATS_H