Permalink
Browse files

Using malloc_count to create memory profiles of btree_multimap and st…

…andard map containers.
  • Loading branch information...
1 parent 94f0689 commit adb11e3bda6db90b85802074941d570892be5217 @bingmann committed Mar 20, 2013
View
@@ -1,6 +1,6 @@
# Makefile.am
-SUBDIRS = . include testsuite speedtest wxbtreedemo
+SUBDIRS = . include testsuite speedtest memprofile wxbtreedemo
AM_CFLAGS = -W -Wall -I$(srcdir)/include
AM_CXXFLAGS = -W -Wall -Wold-style-cast -DBTREE_DEBUG -I$(srcdir)/include
View
@@ -241,7 +241,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-SUBDIRS = . include testsuite speedtest wxbtreedemo
+SUBDIRS = . include testsuite speedtest memprofile wxbtreedemo
AM_CFLAGS = -W -Wall -I$(srcdir)/include
AM_CXXFLAGS = -W -Wall -Wold-style-cast -DBTREE_DEBUG -I$(srcdir)/include
EXTRA_DIST = Doxyfile \
View
@@ -5234,7 +5234,7 @@ fi
# Checks for library functions.
-ac_config_files="$ac_config_files Makefile include/Makefile testsuite/Makefile speedtest/Makefile wxbtreedemo/Makefile"
+ac_config_files="$ac_config_files Makefile include/Makefile testsuite/Makefile speedtest/Makefile memprofile/Makefile wxbtreedemo/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -5998,6 +5998,7 @@ do
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
"testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
"speedtest/Makefile") CONFIG_FILES="$CONFIG_FILES speedtest/Makefile" ;;
+ "memprofile/Makefile") CONFIG_FILES="$CONFIG_FILES memprofile/Makefile" ;;
"wxbtreedemo/Makefile") CONFIG_FILES="$CONFIG_FILES wxbtreedemo/Makefile" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
View
@@ -126,5 +126,6 @@ AC_CONFIG_FILES([Makefile
include/Makefile
testsuite/Makefile
speedtest/Makefile
+ memprofile/Makefile
wxbtreedemo/Makefile])
AC_OUTPUT
View
@@ -0,0 +1,12 @@
+# B+ Tree Memory Usage Profile
+
+if BUILD_SPEEDTEST
+
+noinst_PROGRAMS = memprofile
+
+endif
+
+memprofile_SOURCES = main.cc malloc_count.c
+
+AM_CXXFLAGS = -W -Wall -Wold-style-cast -I$(top_srcdir)/include
+LIBS = -ldl
Oops, something went wrong.

0 comments on commit adb11e3

Please sign in to comment.