mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
GH-126833: Dumps graphviz representation of executor graph. (GH-126880)
This commit is contained in:
parent
5fc6bb2754
commit
e62e1ca455
9 changed files with 230 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue