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 /subsurface-core/git-access.h | |
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 'subsurface-core/git-access.h')
-rw-r--r-- | subsurface-core/git-access.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-core/git-access.h b/subsurface-core/git-access.h index 272ec116e..3a0c5160a 100644 --- a/subsurface-core/git-access.h +++ b/subsurface-core/git-access.h @@ -24,7 +24,11 @@ extern const char *saved_git_id; extern void clear_git_id(void); extern void set_git_id(const struct git_oid *); void set_git_update_cb(int (*)(int, const char *)); +int git_storage_update_progress(int percent, const char *text); char *get_local_dir(const char *remote, const char *branch); + +extern int last_git_storage_update_val; + #ifdef __cplusplus } #endif |