mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
sync: Track new/existing project count
New vs existing project may be a useful measure for analyzing sync performance. Bug: b/287105597 Change-Id: Ibea3e90c9fe3d16fd8b863bcae22b21963a6771a Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/377574 Tested-by: Jason Chang <jasonnc@google.com> Reviewed-by: Joanna Wang <jojwang@google.com>
This commit is contained in:
parent
be71c2f80f
commit
1d3b4fbeec
@ -1676,6 +1676,13 @@ later is required to fix a server side protocol bug.
|
|||||||
err_update_projects = False
|
err_update_projects = False
|
||||||
err_update_linkfiles = False
|
err_update_linkfiles = False
|
||||||
|
|
||||||
|
# Log the repo projects by existing and new.
|
||||||
|
existing = [x for x in all_projects if x.Exists]
|
||||||
|
mp.config.SetString("repo.existingprojectcount", str(len(existing)))
|
||||||
|
mp.config.SetString(
|
||||||
|
"repo.newprojectcount", str(len(all_projects) - len(existing))
|
||||||
|
)
|
||||||
|
|
||||||
self._fetch_times = _FetchTimes(manifest)
|
self._fetch_times = _FetchTimes(manifest)
|
||||||
if not opt.local_only:
|
if not opt.local_only:
|
||||||
with multiprocessing.Manager() as manager:
|
with multiprocessing.Manager() as manager:
|
||||||
|
Loading…
Reference in New Issue
Block a user