summaryrefslogtreecommitdiffstats
path: root/Lib/profiling/sampling/sample.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-138122: Add blocking mode for accurate stack traces in Tachyon (#142998)Pablo Galindo Salgado2025-12-231-11/+38
|
* gh-138122: Allow tachyon to write and read binary output (#142730)Pablo Galindo Salgado2025-12-221-0/+51
|
* gh-142927: Tachyon: Comma separate thousands and fix singular/plurals (#142934)Hugo van Kemenade2025-12-221-24/+20
|
* gh-142654: show the clear error message when sampling on an unknown PID in ↵Keming2025-12-171-28/+40
| | | | | | tachyon (#142655) Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
* gh-138122: Add exception profiling mode to the sampling profiler (#142561)Pablo Galindo Salgado2025-12-111-2/+5
|
* gh-138122: Make the tachyon profiler opcode-aware (#142394)Pablo Galindo Salgado2025-12-111-5/+11
|
* gh-138122: Implement frame caching in RemoteUnwinder to reduce memory reads ↵Pablo Galindo Salgado2025-12-061-10/+102
| | | | | | | | | | | (#142137) This PR implements frame caching in the RemoteUnwinder class to significantly reduce memory reads when profiling remote processes with deep call stacks. When cache_frames=True, the unwinder stores the frame chain from each sample and reuses unchanged portions in subsequent samples. Since most profiling samples capture similar call stacks (especially the parent frames), this optimization avoids repeatedly reading the same frame data from the target process. The implementation adds a last_profiled_frame field to the thread state that tracks where the previous sample stopped. On the next sample, if the current frame chain reaches this marker, the cached frames from that point onward are reused instead of being re-read from remote memory. The sampling profiler now enables frame caching by default.
* GH-141565: Add async code awareness to Tachyon (#141533)Savannah Ostrowski2025-12-061-4/+11
| | | | Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
* gh-140677 Add heatmap visualization to Tachyon sampling profiler (#140680)Pablo Galindo Salgado2025-12-021-1/+1
| | | | Co-authored-by: Ivona Stojanovic <stojanovic.i@hotmail.com>
* gh-138122: New Tachyon UI (#142116)László Kiss Kollár2025-12-011-3/+4
| | | | Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
* gh-141999: Handle KeyboardInterrupt when sampling in the new tachyon ↵yihong2025-11-301-41/+47
| | | | profiler (#142000)
* gh-138122: Add thread status statistics to flamegraph profiler (#141900)Pablo Galindo Salgado2025-11-301-1/+2
| | | | Co-authored-by: ivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
* gh-138122: Refactor the CLI of profiling.sampling into subcommands (#141813)Pablo Galindo Salgado2025-11-241-895/+89
|
* gh-141645: Add a TUI mode to the new tachyon profiler (#141646)Pablo Galindo Salgado2025-11-201-45/+175
|
* GH-140643: Add `<native>` and `<GC>` frames to the sampling profiler (#141108)Brandt Bucher2025-11-171-5/+21
| | | | | | | | | - Introduce a new field in the GC state to store the frame that initiated garbage collection. - Update RemoteUnwinder to include options for including "<native>" and "<GC>" frames in the stack trace. - Modify the sampling profiler to accept parameters for controlling the inclusion of native and GC frames. - Enhance the stack collector to properly format and append these frames during profiling. - Add tests to verify the correct behavior of the profiler with respect to native and GC frames, including options to exclude them. Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
* gh-135953: Add GIL contention markers to sampling profiler Gecko format ↵Pablo Galindo Salgado2025-11-171-9/+28
| | | | | | (#139485) This commit enhances the Gecko format reporter in the sampling profiler to include markers for GIL acquisition events.
* gh-140137: Handle empty collections in profiling.sampling (#140154)Pablo Galindo Salgado2025-10-151-3/+8
|
* gh-135953: Add Gecko reporter to sampling profiler (#139364)ivonastojanovic2025-10-011-4/+18
| | | | Signed-off-by: Pablo Galindo Salgado <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
* gh-138122: Allow to filter by thread in tachyon's flamegraph (#139216)Pablo Galindo Salgado2025-09-251-1/+1
|
* gh-138709: Implement CPU time profiling in profiling.sample (#138710)Pablo Galindo Salgado2025-09-191-7/+41
|
* gh-135953: Add flamegraph reporter to sampling profiler (#138715)László Kiss Kollár2025-09-091-6/+30
|
* gh-138122: Implement PEP 799 (#138142)Pablo Galindo Salgado2025-08-271-0/+864