tracexec helps you to figure out what and how programs get executed when you execute a command.
It's useful for debugging build systems, catching fd leaks, understanding what shell scripts actually do, figuring out what programs does a proprietary software run, etc.
What I did though was generate dot-files for graphviz to process. To that graph it's easy to add information about opened/created files as well.