Skip to content

Commit

Permalink
gvfs:trace2:data: status serialization
Browse files Browse the repository at this point in the history
Add trace information around status serialization.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler authored and vdye committed Jul 19, 2023
1 parent 87422f2 commit b25228c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wt-status-serialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "wt-status.h"
#include "pkt-line.h"
#include "trace.h"
#include "trace2.h"

static struct trace_key trace_serialize = TRACE_KEY_INIT(SERIALIZE);

Expand Down Expand Up @@ -302,6 +303,8 @@ void wt_status_serialize_v1(int fd, struct wt_status *s)
struct string_list_item *iter;
int k;

trace2_region_enter("status", "serialize", the_repository);

/*
* version header must be first line.
*/
Expand Down Expand Up @@ -335,4 +338,6 @@ void wt_status_serialize_v1(int fd, struct wt_status *s)
}
packet_flush(fd);
}

trace2_region_leave("status", "serialize", the_repository);
}

0 comments on commit b25228c

Please sign in to comment.