I don't know how I do that.
if the app. has a GUI but the problem is the processing, trim the GUI to a minimal version.
If the code performs I/O to files, replace the file I/O with dummy data structures in problems that are unrelated to input/output.
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
SKIP - a book about connecting industrious people with elderly land ownershttps://coderanch.com/t/skip-book