-
Notifications
You must be signed in to change notification settings - Fork 101
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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that sometimes, the experiments are prefixed with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, i've been inconsistent. i was using "exp" for things i consider really temporary while we gather some data for a release or 2. most of the other ones that have real categories, but have "experiment" in the commit message are things that i could keep and maybe upstream or could just drop. i'm trying to not flood the telemetry stream with things that may not be useful long term, but at the same time gather enough data for our immediate analysis needs. |
||
(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.