python / python/cpython

Clean up the dtrace code and documentation for the hook is not using

未關閉
#125,914 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

interpreter-core type-bug
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

Bug report

Bug description:

8 years ago, @ambv add dtrace support in CPython in https://github.com/python/cpython/commit/a785c87d6eacbed81543a8afe3cb098fabb9610a

For now, after check the code, I think the point following below is not used in CPython code

  • function__entry
  • function__return
  • instance__new__start
  • instance__new__done
  • instance__delete__start
  • instance__delete__done
  • line

I think we need to clean up the code and the document in https://docs.python.org/3/howto/instrumentation.html

cc @markshannon

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs
  • gh-126246

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先檢視 CPython 的 DTrace 支援,以及 docs.python.org/3/howto/instrumentation.html 上的 instrumentation HOWTO,著重於其中列出的 hooks。開始前先檢查相關的 PR gh-126246;未使用的 hooks 及其文件獲得一致處理即代表完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
documentation, tooling
Issue 類型
重構
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。