-
Notifications
You must be signed in to change notification settings - Fork 105
trace2:gvfs:experiment Add experimental regions and data events to help diagnose checkout and reset perf problems #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4f1fe1b
39bcfc4
1c2e3dc
8d2815d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ | |
| #include "fetch-object.h" | ||
| #include "gvfs.h" | ||
| #include "virtualfilesystem.h" | ||
| #include "packfile.h" | ||
|
|
||
| /* | ||
| * Error messages expected by scripts out of plumbing commands such as | ||
|
|
@@ -1474,10 +1475,14 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options | |
| int i, ret; | ||
| static struct cache_entry *dfc; | ||
| struct exclude_list el; | ||
| unsigned long nr_unpack_entry_at_start; | ||
|
|
||
| if (len > MAX_UNPACK_TREES) | ||
| die("unpack_trees takes at most %d trees", MAX_UNPACK_TREES); | ||
|
|
||
| trace2_region_enter("exp", "unpack_trees", NULL); | ||
| nr_unpack_entry_at_start = get_nr_unpack_entry(); | ||
|
|
||
| trace_performance_enter(); | ||
| memset(&el, 0, sizeof(el)); | ||
| if (!core_apply_sparse_checkout || !o->update) | ||
|
|
@@ -1658,6 +1663,9 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options | |
| done: | ||
| trace_performance_leave("unpack_trees"); | ||
| clear_exclude_list(&el); | ||
| trace2_data_intmax("exp", NULL, "unpack_trees/nr_unpack_entries", | ||
|
||
| (intmax_t)(get_nr_unpack_entry() - nr_unpack_entry_at_start)); | ||
| trace2_region_leave("exp", "unpack_trees", NULL); | ||
| return ret; | ||
|
|
||
| return_failed: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.