Profiling of Python plugins / code

オープン
#3,083 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

Start by tracing Binary Ninja startup and command-line handling to find how Python plugins, snippets, and scripts are invoked through the Python interpreter. Determine how a command-line profiling option should cover those invocations cross-platform, then verify that it produces a usable cProfile result for each supported execution path.

索引モデルが issue の本文から書いたものです。

説明

Component: API Effort: Medium Impact: Medium

What is the feature you'd like to have?
I'd like to be able to start binaryninja using e.g. a command-line flag that causes any python plugins, snippets, or scripts run from the command line -- basically anything that's invoked through the python interpreter -- to be run in a profiler such as cProfile.

Is your feature request related to a problem?
I am somewhat often debugging performance issues related to the python API or plugins using it -- see e.g. #3082, or code in my or third-party plugins. In those cases, I'd like to be able to extract a profile to pinpoint performance issues.

Are any alternative solutions acceptable?
I can't think of any good way to do this currently that works cross-platform. On Linux I guess you could use bpftrace and somehow instrument the python interpreter.

主要言語
C++
スター
1.3k
フォーク
298
平均マージ
5日 5時間
マージ済み PR(30日)
19

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Vector35/binaryninja-api のほかの issue

Vector35/binaryninja-api の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。