diff data/fileio/FileSource.h @ 1033:3a48b22fed48

Debug reporting from FileSource
author Chris Cannam
date Thu, 26 Feb 2015 09:43:12 +0000
parents c6f2b93a7d52
children 329ddaf7415d
line wrap: on
line diff
--- a/data/fileio/FileSource.h	Fri Feb 13 13:30:28 2015 +0000
+++ b/data/fileio/FileSource.h	Thu Feb 26 09:43:12 2015 +0000
@@ -195,6 +195,13 @@
      */
     static bool canHandleScheme(QUrl url);
 
+    /**
+     * Print some stats, if FileSource was compiled with debugging.
+     * It's safe to leave a call to this function in release code, as
+     * long as FileSource itself is compiled with release flags.
+     */
+    static void debugReport();
+    
 signals:
     /**
      * Emitted during URL retrieval, when the retrieval progress