Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7dd836b
Add binary I/O header for sampling profiler
pablogsal Dec 15, 2025
83603c7
Add binary writer for sampling profiler
pablogsal Dec 15, 2025
7a58811
Add binary reader for sampling profiler
pablogsal Dec 15, 2025
e3ea7a4
Build: add binary I/O files to Unix build
pablogsal Dec 15, 2025
8931b4a
Build: add binary I/O files to Windows build
pablogsal Dec 15, 2025
18287f4
Add Python bindings for binary writer and reader
pablogsal Dec 15, 2025
1f7737e
Add BinaryCollector for sampling profiler
pablogsal Dec 15, 2025
2965eff
Add BinaryReader for sampling profiler replay
pablogsal Dec 15, 2025
427f846
Add --binary and replay command to sampling profiler CLI
pablogsal Dec 15, 2025
1437629
Update collector interface for binary replay support
pablogsal Dec 15, 2025
e75513b
Add tests for binary format
pablogsal Dec 15, 2025
a520ac1
Add internal documentation for binary format
pablogsal Dec 15, 2025
3ad7a3d
Document binary format and replay command
pablogsal Dec 15, 2025
cd4f412
Fix CI
pablogsal Dec 15, 2025
596af7f
Add NEWS entry
pablogsal Dec 15, 2025
1e2400b
Regen and simplify
pablogsal Dec 15, 2025
b90e37c
Merge upstream/main into file-output
pablogsal Dec 15, 2025
788c565
Speed up general case
pablogsal Dec 15, 2025
51b3b09
Small fixes
pablogsal Dec 20, 2025
81a8f2d
Merge branch 'main' into file-output
pablogsal Dec 20, 2025
0ccea49
Address Laszlo's review
pablogsal Dec 20, 2025
dfc0d31
More fixes from review
pablogsal Dec 20, 2025
b9fc778
Fixes and more tests
pablogsal Dec 20, 2025
191458a
Fix c analizer
pablogsal Dec 22, 2025
63c6f50
Update docs
pablogsal Dec 22, 2025
046fe55
Update cli
pablogsal Dec 22, 2025
f88c01f
Fixes
pablogsal Dec 22, 2025
ed63156
Merge upstream/main
pablogsal Dec 22, 2025
c880f85
Fix big endian
pablogsal Dec 22, 2025
ad7891c
Fix big endian
pablogsal Dec 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Build: add binary I/O files to Unix build
Adds binary_io_writer.c and binary_io_reader.c to the _remote_debugging
module compilation. Also hooks up optional zstd support: when libzstd
is found by pkg-config, the module compiles with HAVE_ZSTD defined and
links against libzstd. Without zstd, the module still builds but
compression is unavailable.
  • Loading branch information
pablogsal committed Dec 15, 2025
commit e3ea7a4e517516c0ceec6060dacd9f59b5426a39
2 changes: 1 addition & 1 deletion Modules/Setup.stdlib.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@MODULE__PICKLE_TRUE@_pickle _pickle.c
@MODULE__QUEUE_TRUE@_queue _queuemodule.c
@MODULE__RANDOM_TRUE@_random _randommodule.c
@MODULE__REMOTE_DEBUGGING_TRUE@_remote_debugging _remote_debugging/module.c _remote_debugging/object_reading.c _remote_debugging/code_objects.c _remote_debugging/frames.c _remote_debugging/frame_cache.c _remote_debugging/threads.c _remote_debugging/asyncio.c
@MODULE__REMOTE_DEBUGGING_TRUE@_remote_debugging _remote_debugging/module.c _remote_debugging/object_reading.c _remote_debugging/code_objects.c _remote_debugging/frames.c _remote_debugging/frame_cache.c _remote_debugging/threads.c _remote_debugging/asyncio.c _remote_debugging/binary_io_writer.c _remote_debugging/binary_io_reader.c
@MODULE__STRUCT_TRUE@_struct _struct.c

# build supports subinterpreters
Expand Down
22 changes: 20 additions & 2 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5529,6 +5529,18 @@ PKG_CHECK_MODULES([LIBZSTD], [libzstd >= 1.4.5], [have_libzstd=yes], [
])
])

dnl _remote_debugging module: optional zstd compression support
dnl The module always builds, but zstd compression is only available when libzstd is found
AS_VAR_IF([have_libzstd], [yes], [
REMOTE_DEBUGGING_CFLAGS="-DHAVE_ZSTD $LIBZSTD_CFLAGS"
REMOTE_DEBUGGING_LIBS="$LIBZSTD_LIBS"
], [
REMOTE_DEBUGGING_CFLAGS=""
REMOTE_DEBUGGING_LIBS=""
])
AC_SUBST([REMOTE_DEBUGGING_CFLAGS])
AC_SUBST([REMOTE_DEBUGGING_LIBS])

dnl PY_CHECK_NETDB_FUNC(FUNCTION)
AC_DEFUN([PY_CHECK_NETDB_FUNC], [PY_CHECK_FUNC([$1], [@%:@include <netdb.h>])])

Expand Down Expand Up @@ -7911,7 +7923,7 @@ PY_STDLIB_MOD_SIMPLE([_pickle])
PY_STDLIB_MOD_SIMPLE([_posixsubprocess])
PY_STDLIB_MOD_SIMPLE([_queue])
PY_STDLIB_MOD_SIMPLE([_random])
PY_STDLIB_MOD_SIMPLE([_remote_debugging])
PY_STDLIB_MOD_SIMPLE([_remote_debugging], [$REMOTE_DEBUGGING_CFLAGS], [$REMOTE_DEBUGGING_LIBS])
PY_STDLIB_MOD_SIMPLE([select])
PY_STDLIB_MOD_SIMPLE([_struct])
PY_STDLIB_MOD_SIMPLE([_types])
Expand Down