diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-03 19:26:05 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-04 14:18:11 -0700 |
commit | 5821c56da24d0aa02e5bb6d54f14e7651d23269b (patch) | |
tree | 2d42d844bfc632fafbba6fb1eca7fc4d29e6a75f /qt-mobile | |
parent | 904539024e97b5980050c4ad65a6d2a901f3cb3a (diff) | |
download | subsurface-5821c56da24d0aa02e5bb6d54f14e7651d23269b.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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()); |