16 Commits
Author SHA1 Message Date
tonghuaroot (童话)andPablo Galindo Salgado e4a24732eb gh-152721: Fix quadratic RLE replay time in the profiling binary reader (#152722)
* gh-152721: Fix quadratic RLE replay time in the profiling binary reader

* gh-152721: Clarify the batch-list comment

Reword per review: the list is built with append per element, not
pre-sized; note the old alloc(count - i) + trim per batch was O(count^2).

* Cap RLE batch size to bound the per-batch timestamp list

* Move MAX_RLE_BATCH_SAMPLES comment to its own line (keep under 79 cols)

* Drop the now-redundant emit_batch trim and fix the review nits

The batch list is built to its exact size, so the PyList_SetSlice trim was a no-op; call emit_sample directly. Also point the cap comment at the issue (gh-151378) and drop the stale over-long comment.

* gh-152721: Test replay batches beyond the RLE limit

---------

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2026-10-05 14:37:01 +00:00
Stan UlbrychandVictor Stinner b93fb19a6e Run a job that the test suite with MSan to the CI (#158625)
* Run the test suite with MSan in CI

* Additional fixes

* Add `_Py_MSAN_UNPOISON_STRING`

* Apply Victor's suggestions

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>

* Apply Victor's suggestions

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>

---------

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>
2026-10-05 02:11:42 +01:00
Pablo Galindo Salgado d3663ef943 gh-154090: Store profiling mode and capture settings in binary profiles (GH-154105) 2026-09-24 23:17:30 +00:00
Pablo Galindo Salgado 7f0ccd6c0e gh-154060: Preserve replay duration and rate (#154101) 2026-08-26 10:24:00 +01:00
Maurycy Pawłowski-Wieroński 1d196507e6 gh-151292: Change total_samples:u32 in the binary format to total_samples:u64 (#153425) 2026-07-09 13:59:28 +00:00
tonghuaroot (童话) 8e580b0685 gh-152718: Reject oversized table counts in the profiling binary reader (#152719) 2026-07-04 23:56:09 +01:00
Pablo Galindo Salgado a5be25d3bd gh-149619: Harden _remote_debugging error paths (#150349) 2026-05-25 23:22:46 +01:00
Maurycy Pawłowski-Wieroński 354ef336e4 gh-149474: use Py_fopen in Binary{Reader,Writer} for audit hook and path-like support (#149524) 2026-05-09 01:01:35 +01:00
Maurycy Pawłowski-Wieroński c266f0c375 gh-149009: Validate thread_count in profiling.sampling binary reader (#149147) 2026-05-05 00:50:06 +00:00
Maurycy Pawłowski-Wieroński 04ce318522 gh-146256: Add --jsonl collector to the profiling.sampling (#146257) 2026-05-05 00:44:37 +00:00
Maurycy Pawłowski-Wieroński 9dca1ff759 gh-149300: _remote_debugging: clean up magic and duplicate consts in the binary format helper (#149301) 2026-05-05 01:31:53 +01:00
Maurycy Pawłowski-Wieroński 0efd679a6c gh-148252: Avoid overflow in _remote_debugging binary reader bounds checks (#148972) 2026-04-28 00:06:23 +01:00
Pablo Galindo Salgado eb4c78df07 gh-148252: Fix stack depth calculation in binary reader on 32-bit platforms (#148253)
Compute ``final_depth`` in ``decode_stack_pop_push()`` and
``decode_stack_suffix()`` using ``uint64_t`` before validating it.

On 32-bit builds, using ``size_t`` arithmetic for ``keep + push`` can wrap
for large input values, causing the later bounds check to validate the wrong
final depth. Using a widened type keeps the validation aligned with the
actual result.
2026-04-13 23:43:55 +01:00
Pablo Galindo Salgado ae6adc9079 gh-146308: Fix error handling issues in _remote_debugging module (#146309) 2026-03-22 21:12:02 +00:00
Pablo Galindo SalgadoandStan Ulbrych 7c44f37170 gh-138122: Extend binary profiling format with full source location and opcode (#143088)
Co-authored-by: Stan Ulbrych <stan@ulbrych.org>
2025-12-24 16:15:11 +00:00
Pablo Galindo Salgado 9e51301234 gh-138122: Allow tachyon to write and read binary output (#142730) 2025-12-22 23:57:20 +00:00