[shotwell] Add timing output for imports
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Add timing output for imports
- Date: Sun, 9 Jul 2017 22:16:41 +0000 (UTC)
commit 3a0cd2e0e508700a2fb8752e4736dd7542f7bdea
Author: Jens Georg <mail jensge org>
Date: Sun Jul 9 23:32:36 2017 +0200
Add timing output for imports
src/BatchImport.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/BatchImport.vala b/src/BatchImport.vala
index fdf2a7f..675fef0 100644
--- a/src/BatchImport.vala
+++ b/src/BatchImport.vala
@@ -327,9 +327,11 @@ public class ImportManifest {
public Gee.List<BatchImportResult> already_imported = new Gee.ArrayList<BatchImportResult>();
public Gee.List<BatchImportResult> corrupt_files = new Gee.ArrayList<BatchImportResult>();
public Gee.List<BatchImportResult> all = new Gee.ArrayList<BatchImportResult>();
+ public GLib.Timer timer;
public ImportManifest(Gee.List<BatchImportJob>? prefailed = null,
Gee.List<BatchImportJob>? pre_already_imported = null) {
+ this.timer = new Timer();
if (prefailed != null) {
foreach (BatchImportJob job in prefailed) {
BatchImportResult batch_result = new BatchImportResult(job, null,
@@ -623,6 +625,7 @@ public class BatchImport : Object {
flush_ready_sources();
log_status("Import completed: %s".printf(where));
+ debug("Import complete after %f", manifest.timer.elapsed());
// report completed to the reporter (called prior to the "import_complete" signal)
if (reporter != null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]