Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add public APIs to set trace and profile function in other threads. #93503

Closed
@pablogsal

Description

@pablogsal

Currently, we have two public c-apis to set tracing and profile functions:PyEval_SetProfile andPyEval_SetThreadTrace. This allows to set tracing and profiling functions in the calling thread. This works well, but is, unfortunately, is limited because there is no way for debuggers and profilers to set the tracing and profiling functions in all existing running threads, only the ones that are newly created. This makes it impossible to reliable profile or debug already running applicationsusing public APIs or to allow to activate/deactivate said profilers or debuggers.

There are two exposed APIs that are private (have a leading underscore) that do what we need:_PyEval_SetProfile and_PyEval_SetTrace. Unfortunately, these APIs are not fully public and they don't generate audit events.

I propose to expose public-facing versions of these APIs so profilers and debuggers can set their tracing/profiling functions in all existing threads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp