nuttx/tools/gdb
xuxingliang 9dbf58f1be tools/gdb: optimize memleak speed
1. Avoid to_bytes by using memoryview directly.
2. No need to call gdb to cast to char *.
3. Cache the memory data without invoke gdb in every iteration.
4. Do code cleanup.

memleak speed improved from 261.93 seconds to 29.9 seconds for x4b
usecase.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-11-21 23:08:55 +08:00
..
__init__.py tools/gdb: use f string where possible 2024-11-20 09:04:22 +08:00
gcore.py format code to pass CI 2024-11-20 09:04:22 +08:00
lists.py format code to pass CI 2024-11-20 09:04:22 +08:00
macros.py format code to pass CI 2024-11-20 09:04:22 +08:00
memdump.py tools/gdb: optimize memleak speed 2024-11-21 23:08:55 +08:00
stack.py format code to pass CI 2024-11-20 09:04:22 +08:00
thread.py tools/gdb: use native thread command 2024-11-21 23:08:55 +08:00
utils.py tool/gdb: use second inferior to get symbol 2024-11-21 23:08:55 +08:00