MCPcopy Create free account
hub / github.com/git/git / trace_performance_enter

Function trace_performance_enter

trace.c:193–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191static int perf_indent;
192
193uint64_t trace_performance_enter(void)
194{
195 uint64_t now;
196
197 if (!trace_want(&trace_perf_key))
198 return 0;
199
200 now = getnanotime();
201 perf_start_times[perf_indent] = now;
202 if (perf_indent + 1 < ARRAY_SIZE(perf_start_times))
203 perf_indent++;
204 else
205 BUG("Too deep indentation");
206 return now;
207}
208
209static void trace_performance_vprintf_fl(const char *file, int line,
210 uint64_t nanos, const char *format,

Callers 10

preload_indexFunction · 0.85
cache_tree_updateFunction · 0.85
check_updatesFunction · 0.85
unpack_treesFunction · 0.85
update_sparsityFunction · 0.85
run_diff_indexFunction · 0.85
refresh_indexFunction · 0.85
read_index_fromFunction · 0.85
lazy_init_name_hashFunction · 0.85

Calls 2

trace_wantFunction · 0.85
getnanotimeFunction · 0.85

Tested by

no test coverage detected