[mob][photos] Clustering time logs

This commit is contained in:
laurenspriem 2024-04-23 09:56:46 +05:30
parent f49ede4a74
commit 6a0a9bad1e
2 changed files with 4 additions and 2 deletions

View file

@ -624,7 +624,7 @@ class FaceClusteringService {
}
// analyze the results
FaceClusteringService._analyzeClusterResults(sortedFaceInfos);
// FaceClusteringService._analyzeClusterResults(sortedFaceInfos);
return ClusteringResult(
newFaceIdToCluster: newFaceIdToCluster,

View file

@ -295,6 +295,7 @@ class FaceMlService {
bool clusterInBuckets = true,
}) async {
_logger.info("`clusterAllImages()` called");
final clusterAllImagesTime = DateTime.now();
try {
// Get a sense of the total number of faces in the database
@ -408,7 +409,8 @@ class FaceMlService {
_logger.info('Done updating FaceIDs with clusterIDs in the DB, in '
'${DateTime.now().difference(clusterDoneTime).inSeconds} seconds');
}
_logger.info('clusterAllImages() finished');
_logger.info('clusterAllImages() finished, in '
'${DateTime.now().difference(clusterAllImagesTime).inSeconds} seconds');
} catch (e, s) {
_logger.severe("`clusterAllImages` failed", e, s);
}