Commit 18287f4
committed
Add Python bindings for binary writer and reader
Exposes BinaryWriter and BinaryReader as Python types in
_remote_debugging module. BinaryWriter wraps the C writer with
write_sample() and finalize() methods. BinaryReader provides replay()
to feed samples through any collector.
Also adds zstd_available() function to let Python code check whether
compression support was compiled in.1 parent 8931b4a commit 18287f4
File tree
3 files changed
+1198
-5
lines changed- Modules/_remote_debugging
- clinic
3 files changed
+1198
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
| 204 | + | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
0 commit comments