mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
maintenance: add trace2 regions for task execution
Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
4ddc79b2da
commit
25914c4fde
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue