]>
Commit | Line | Data |
---|---|---|
590d55a2 | 1 | #define SLOWLOG_ENTRY_MAX_ARGC 32 |
2 | #define SLOWLOG_ENTRY_MAX_STRING 128 | |
3 | ||
daa70b17 | 4 | /* This structure defines an entry inside the slow log list */ |
5 | typedef struct slowlogEntry { | |
6 | robj **argv; | |
7 | int argc; | |
2cb68284 | 8 | long long id; /* Unique entry identifier. */ |
daa70b17 | 9 | long long duration; /* Time spent by the query, in nanoseconds. */ |
10 | time_t time; /* Unix time at which the query was executed. */ | |
11 | } slowlogEntry; | |
12 | ||
13 | /* Exported API */ | |
14 | void slowlogInit(void); | |
15 | void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration); | |
16 | ||
17 | /* Exported commands */ | |
18 | void slowlogCommand(redisClient *c); |