gh-103295: expose API for writing perf map files by gsallam · Pull Request #103546 · python/cpython · GitHub

github.com

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

expose API for writing perf map files #103295

Update posixmodule.c

Update pycore_ceval_state.h

Update perf_trampoline.c

Update pylifecycle.c

Update pycore_ceval.h

Update _testinternalcapi.c

Create test_perfmaps.py

Update posixmodule.c

Update posixmodule.c

📜🤖 Added by blurb_it.

Update test_perfmaps.py

Update ignored.tsv

Fix trampoline APIs on windows, return int instead of void* from the …

View reviewed changes

python/cpython#96123

Return error codes instead of setting exceptions in PyUnstable_PerfMa…

Add a note that holding the GIL is not required for these APIs

Remove the init_state call since it is always NULL for the perf backend

trim extra whitespaces

simplify link to perf map docs from perf profiling

document return values, other doc tweaks

move headers to sysmodule.h

pass through init return value from write-entry

🔨 test-with-buildbots

View reviewed changes

apparently :c:data:errno doesn't exist

use PyMem_Raw* instead of malloc/free

Merge branch 'main' into gsallam/main

fix PyMem_Free to PyMem_RawFree

python/cpython#104811