GH-126833: Dumps graphviz representation of executor graph. (GH-126880)

This commit is contained in:
Mark Shannon 2024-12-13 11:00:00 +00:00 committed by GitHub
parent 5fc6bb2754
commit e62e1ca455
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 230 additions and 2 deletions

View file

@ -60,6 +60,9 @@ typedef struct {
};
uint64_t operand0; // A cache entry
uint64_t operand1;
#ifdef Py_STATS
uint64_t execution_count;
#endif
} _PyUOpInstruction;
typedef struct {
@ -285,6 +288,8 @@ static inline int is_terminator(const _PyUOpInstruction *uop)
);
}
PyAPI_FUNC(int) _PyDumpExecutors(FILE *out);
#ifdef __cplusplus
}
#endif