Skip to content

Commit f98c74e

Browse files
olivermddaverigby
authored andcommitted
Add slow commands as phosphor instant traces
We should expand on this to show to entire execution time of the command. For now, however, this will do. Change-Id: Iac56095c01a00a07111eeca3b1a7a62a68e73922 Reviewed-on: http://review.couchbase.org/82915 Reviewed-by: Dave Rigby <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent e72f0e7 commit f98c74e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

daemon/connection_mcbp.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "mc_time.h"
2323

2424
#include <mcbp/mcbp.h>
25+
#include <phosphor/phosphor.h>
2526
#include <platform/cb_malloc.h>
2627
#include <platform/checked_snprintf.h>
2728
#include <platform/strerror.h>
@@ -1086,6 +1087,7 @@ void McbpConnection::maybeLogSlowCommand(
10861087
}
10871088
}
10881089

1090+
TRACE_INSTANT2("memcached/slow", "Slow cmd", "opcode", cmd, "connection_id", getId());
10891091
LOG_WARNING(NULL,
10901092
"%u: Slow %s operation on connection: %s (%s)%s"
10911093
" opaque:0x%08x",

0 commit comments

Comments
 (0)