| 
									
										
										
										
											2023-09-06 17:54:59 +02:00
										 |  |  | // 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.
 | 
					
						
							| 
									
										
										
										
											2022-05-16 14:35:11 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifndef Py_PYSTATS_H
 | 
					
						
							|  |  |  | #define Py_PYSTATS_H
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-06 17:54:59 +02:00
										 |  |  | #if defined(Py_STATS) && !defined(Py_LIMITED_API)
 | 
					
						
							|  |  |  | #  define Py_CPYTHON_PYSTATS_H
 | 
					
						
							|  |  |  | #  include "cpython/pystats.h"
 | 
					
						
							|  |  |  | #  undef Py_CPYTHON_PYSTATS_H
 | 
					
						
							| 
									
										
										
										
											2022-05-18 14:38:43 +01:00
										 |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2023-09-06 17:54:59 +02:00
										 |  |  | #  define _Py_INCREF_STAT_INC() ((void)0)
 | 
					
						
							|  |  |  | #  define _Py_DECREF_STAT_INC() ((void)0)
 | 
					
						
							| 
									
										
										
										
											2024-09-23 19:10:55 +01:00
										 |  |  | #  define _Py_INCREF_IMMORTAL_STAT_INC() ((void)0)
 | 
					
						
							|  |  |  | #  define _Py_DECREF_IMMORTAL_STAT_INC() ((void)0)
 | 
					
						
							| 
									
										
										
										
											2022-05-16 14:35:11 +01:00
										 |  |  | #endif  // !Py_STATS
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2023-09-06 17:54:59 +02:00
										 |  |  | #endif   // !Py_PYSTATS_H
 |