system_profiler applications inventory
I would suggest running opensnoop while running the system_profiler command.

I just did that, and with the full detail level as you have it there are over 25,000 files that are being read by system_profiler. It looks like it is reading plist files to get the output as well as reproducing various system logs.

If you stop md or restore from TimeMachine the output will change.