pwndbg/profiling
Maciej Dębski a3da3f0daa Profiling and performance improvements (#421)
* Add scripts for benchmarking and profiling pwndbg commands

* Fix performance issue in emulator.py

Register to unicorn enum lookup was really ineffective. Replaced with
parsing (consts) on initialization time, and only dict lookup on hot path.

* Fix performance issue in syntax_highlight.

Current code initialized pygments on each syntax_highlight(), which
apparently took some time.

* Minor performance improvements in syntax_highlight

* Memoize IDA availability.

Not sure it this is a valid solution, I have never used pwndbg with IDA.
However, we should not try to connect to ida on each context(), as this
takes 25% of current exec time.

* Explicitly source gdbinit in benchmark scripts.
2018-02-24 22:45:14 +07:00
..
.gitignore Profiling and performance improvements (#421) 2018-02-24 22:45:14 +07:00
benchmark.sh Profiling and performance improvements (#421) 2018-02-24 22:45:14 +07:00
profile.sh Profiling and performance improvements (#421) 2018-02-24 22:45:14 +07:00
test.c Profiling and performance improvements (#421) 2018-02-24 22:45:14 +07:00