def on_app_shutdown(self, app):
        '''Dump profile content to disk'''

        if self.filewatcher:
            self.filewatcher.stop()
        if self.profile:
            self.upload_page.on_destroy()
            self.download_page.on_destroy()
def on_app_shutdown ( self , app ) : if self . filewatcher : self . filewatcher . stop ( ) if self . profile : self . upload_page . on_destroy ( ) self . download_page . on_destroy ( )
Dump profile content to disk