mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
904539024e
commit
5821c56da2
5 changed files with 106 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue