From 5821c56da24d0aa02e5bb6d54f14e7651d23269b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 3 Apr 2016 19:26:05 -0500 Subject: Instrument the git storage code This allows fairly fine grained analysis on what part of loading from and saving to git we are spending our time. Compute performance and network speed play a significant role in how all this plays out. The routine to check if we can reach the cloud server is modified to send updates every second so we don't hang without any feedback for five seconds when there is network but we can't reach the cloud server (not an unlikely scenario in many dive locations with poor network quality) Signed-off-by: Dirk Hohndel --- qt-mobile/qmlmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-mobile/qmlmanager.cpp') diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index 57705c363..d6bdaa5cb 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -311,7 +311,7 @@ void QMLManager::loadDivesWithValidCredentials() setCredentialStatus(VALID); appendTextToLog("Cloud credentials valid, loading dives..."); setStartPageText("Cloud credentials valid, loading dives..."); - loadDiveProgress(0); + git_storage_update_progress(0, "load dives with valid credentials"); QString url; if (getCloudURL(url)) { QString errorString(get_error_string()); @@ -703,6 +703,7 @@ void QMLManager::saveChanges() return; } appendTextToLog("Saving dives."); + git_storage_update_progress(0, "saveChanges"); // reset the timers QString fileName; if (getCloudURL(fileName)) { appendTextToLog(get_error_string()); -- cgit v1.2.3-70-g09d2