]>
git.saurik.com Git - redis.git/blob - src/slowlog.h
1 #define SLOWLOG_ENTRY_MAX_ARGC 32
2 #define SLOWLOG_ENTRY_MAX_STRING 128
4 /* This structure defines an entry inside the slow log list */
5 typedef struct slowlogEntry
{
8 long long id
; /* Unique entry identifier. */
9 long long duration
; /* Time spent by the query, in nanoseconds. */
10 time_t time
; /* Unix time at which the query was executed. */
14 void slowlogInit(void);
15 void slowlogPushEntryIfNeeded(robj
**argv
, int argc
, long long duration
);
17 /* Exported commands */
18 void slowlogCommand(redisClient
*c
);