Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
13b37159
Commit
13b37159
authored
Oct 22, 2010
by
antirez
Browse files
reports if tcmalloc is in used in INFO output
parent
0a802bd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
13b37159
...
...
@@ -15,6 +15,7 @@ endif
ifeq
($(USE_TCMALLOC),yes)
CCLINK
+=
-ltcmalloc
CCFLAGS
+=
-DUSE_TCMALLOC
endif
CCOPT
=
$(CFLAGS)
$(CCLINK)
$(ARCH)
$(PROF)
DEBUG
?=
-g
-rdynamic
-ggdb
...
...
src/redis.c
View file @
13b37159
...
...
@@ -1185,6 +1185,7 @@ sds genRedisInfoString(void) {
"used_memory:%zu
\r\n
"
"used_memory_human:%s
\r\n
"
"mem_fragmentation_ratio:%.2f
\r\n
"
"use_tcmalloc:%d
\r\n
"
"changes_since_last_save:%lld
\r\n
"
"bgsave_in_progress:%d
\r\n
"
"last_save_time:%ld
\r\n
"
...
...
@@ -1219,6 +1220,11 @@ sds genRedisInfoString(void) {
zmalloc_used_memory
(),
hmem
,
zmalloc_get_fragmentation_ratio
(),
#ifdef USE_TCMALLOC
1
,
#else
0
,
#endif
server
.
dirty
,
server
.
bgsavechildpid
!=
-
1
,
server
.
lastsave
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment