Thread (80 messages) 80 messages, 6 authors, 2020-09-21
STALE2101d
Revisions (5)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 current
  5. v5 [diff vs current]

[PATCH v4 11/11] maintenance: add trace2 regions for task execution

From: Derrick Stolee via GitGitGadget <hidden>
Date: 2020-09-04 13:10:30
Subsystem: the rest · Maintainer: Linus Torvalds

From: Derrick Stolee <redacted>

Signed-off-by: Derrick Stolee <redacted>
---
 builtin/gc.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/builtin/gc.c b/builtin/gc.c
index 8c4edf19ba..c3bcdc1167 100644
--- a/builtin/gc.c
+++ b/builtin/gc.c
@@ -927,10 +927,12 @@ static int maintenance_run_tasks(struct maintenance_run_opts *opts)
 		     !tasks[i].auto_condition()))
 			continue;
 
+		trace2_region_enter("maintenance", tasks[i].name, r);
 		if (tasks[i].fn(opts)) {
 			error(_("task '%s' failed"), tasks[i].name);
 			result = 1;
 		}
+		trace2_region_leave("maintenance", tasks[i].name, r);
 	}
 
 	rollback_lock_file(&lk);
-- 
gitgitgadget
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help