Profiling of Python plugins / code

Aperta
#3,083 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
1.3k
Fork
298
Merge medio
5g 5h
PR unite (30g)
19

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Vector35/binaryninja-api

Tutte le issue di Vector35/binaryninja-api

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.