def statfiles(self):
        """Compose a list of statistics file names.

        :returns: A list of available profiles.
        :rtype: list[str]
        """
        return [
            f
            for f in os.listdir(self.path)
            if f.startswith('cp_') and f.endswith('.prof')
        ]
Compose a list of statistics file names.

        :returns: A list of available profiles.
        :rtype: list[str]
        
cherrypy/lib/profiler.py