Salt includes a number of built-in subsystems to generate top file data, they are listed at master tops modules.
The source for the built-in Salt master tops can be found here: salt/tops