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 <[email protected]>
  • Loading branch information
jeffhostetler authored and dscho committed Jan 1, 2025
1 parent 4b24b82 commit 05bee9e
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 @@ -9,6 +9,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 @@ -305,6 +306,8 @@ void wt_status_serialize_v1(int fd, struct wt_status *s)
struct string_list_item *iter;
size_t k;

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

/*
* version header must be first line.
*/
Expand Down Expand Up @@ -338,4 +341,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 05bee9e

Please sign in to comment.