git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4ddc79b
)
maintenance: add trace2 regions for task execution
author
Derrick Stolee
<redacted>
Thu, 17 Sep 2020 18:11:52 +0000
(18:11 +0000)
committer
Junio C Hamano
<redacted>
Thu, 17 Sep 2020 18:30:05 +0000
(11:30 -0700)
Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/gc.c
patch
|
blob
|
history
diff --git
a/builtin/gc.c
b/builtin/gc.c
index 4db853c5619071463ee353066968d455915539c1..090959350e06c0821889cab4d3a217ef814e5618 100644
(file)
--- 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);
git clone https://git.99rst.org/PROJECT