Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Debug DB call timings

laurenspriemc8efc5fca02a
diff --git a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart
index 9c2f5ad1f7..df4e4dda15 100644
--- a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart
+++ b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart
@@ -570,12 +570,16 @@ class FaceMlService {
try {
isImageIndexRunning = true;
_logger.info('starting image indexing');
+ final w = (kDebugMode ? EnteWatch('FacesGetAllFiles') : null)?..start();
final uploadedFileIDs = await FilesDB.instance
.getOwnedFileIDs(Configuration.instance.getUserID()!);
+ w?.log('getOwnedFileIDs');
final enteFiles =
await FilesDB.instance.getUploadedFiles(uploadedFileIDs);
+ w?.log('getUploadedFiles');
final Map<int, int> alreadyIndexedFiles =
await FaceMLDataDB.instance.getIndexedFileIds();
+ w?.log('getIndexedFileIds');
// Make sure the image conversion isolate is spawned
// await ImageMlIsolate.instance.ensureSpawned();