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