Thread (121 messages) 121 messages, 12 authors, 2020-08-06

[PATCH v2 18/18] maintenance: add trace2 regions for task execution

STALE2248d

From: Derrick Stolee via GitGitGadget <hidden>
Date: 2020-07-23 17:57:05
Subsystem: the rest · Maintainer: Linus Torvalds

Revision v2 of 3 in this series.

Revisions (3)
  1. v1 [diff vs current]
  2. v2 current
  3. v3 [diff vs current]
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 b040c7d31d..7d9e6c34b7 100644
--- a/builtin/gc.c
+++ b/builtin/gc.c
@@ -1322,7 +1322,9 @@ static int maintenance_run(void)
 		     !tasks[i]->auto_condition()))
 			continue;
 
+		trace2_region_enter("maintenance", tasks[i]->name, r);
 		result = tasks[i]->fn();
+		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