Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-15

Re: [PATCH (performance tracing)] test git-status performance

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:01:45

On Wed, Jun 25, 2014 at 5:56 AM, Karsten Blees [off-list ref] wrote:
 void wt_status_collect(struct wt_status *s)
 {
+       uint64_t start = getnanotime();
+
        wt_status_collect_changes_worktree(s);

+       trace_performance_since(start, "wt_status_collect_changes_worktree");
+       start = getnanotime();
+
        if (s->is_initial)
                wt_status_collect_changes_initial(s);
        else
                wt_status_collect_changes_index(s);
+
+       trace_performance_since(start, "wt_status_collect_changes_index");
+       start = getnanotime();
+
        wt_status_collect_untracked(s);
+
+       trace_performance_since(start, "wt_status_collect_untracked");
 }
Now that we have good perf measuring support, perhaps the next step is
remove gettimeofday() in advice_status_u_option related code in
wt_status_collect_untracked().
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help