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 dscho committed Aug 11, 2023
1 parent ad70c87 commit b63ace4
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 @@ -7,6 +7,7 @@
#include "trace.h"
#include "read-cache-ll.h"
#include "path.h"
#include "trace2.h"

static struct trace_key trace_serialize = TRACE_KEY_INIT(SERIALIZE);

Expand Down Expand Up @@ -303,6 +304,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 @@ -336,4 +339,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 b63ace4

Please sign in to comment.