MCPcopy Create free account
hub / github.com/F-Stack/f-stack / benchmarkVersion

Function benchmarkVersion

app/redis-6.2.6/src/redis-benchmark.c:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 void *clientData);
208
209static sds benchmarkVersion(void) {
210 sds version;
211 version = sdscatprintf(sdsempty(), "%s", REDIS_VERSION);
212
213 /* Add git commit and working tree status when available */
214 if (strtoll(redisGitSHA1(),NULL,16)) {
215 version = sdscatprintf(version, " (git:%s", redisGitSHA1());
216 if (strtoll(redisGitDirty(),NULL,10))
217 version = sdscatprintf(version, "-dirty");
218 version = sdscat(version, ")");
219 }
220 return version;
221}
222
223/* Dict callbacks */
224static uint64_t dictSdsHash(const void *key);

Callers 1

parseOptionsFunction · 0.85

Calls 5

sdscatprintfFunction · 0.85
sdsemptyFunction · 0.85
redisGitSHA1Function · 0.85
redisGitDirtyFunction · 0.85
sdscatFunction · 0.85

Tested by

no test coverage detected