You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/profiling/benchmark_vis_heap_chunks/gdbscript.py

10 lines
249 B
Python

import gdb, pwndbg
pwndbg.profiling.profiler.start()
result = gdb.execute("vis 2000", to_string=True)
pwndbg.profiling.profiler.stop('profile.prof')
# Save result in case user wants to inspect it
with open("result", "w") as f:
f.write(result)