Skip to content

Commit eeeec93

Browse files
jeffhostetlerdscho
authored andcommitted
gvfs:trace2:data: status serialization
Add trace information around status serialization. Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 54ba937 commit eeeec93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wt-status-serialize.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "trace.h"
1010
#include "read-cache-ll.h"
1111
#include "path.h"
12+
#include "trace2.h"
1213

1314
static struct trace_key trace_serialize = TRACE_KEY_INIT(SERIALIZE);
1415

@@ -305,6 +306,8 @@ void wt_status_serialize_v1(int fd, struct wt_status *s)
305306
struct string_list_item *iter;
306307
size_t k;
307308

309+
trace2_region_enter("status", "serialize", the_repository);
310+
308311
/*
309312
* version header must be first line.
310313
*/
@@ -338,4 +341,6 @@ void wt_status_serialize_v1(int fd, struct wt_status *s)
338341
}
339342
packet_flush(fd);
340343
}
344+
345+
trace2_region_leave("status", "serialize", the_repository);
341346
}

0 commit comments

Comments
 (0)