diff options
author | unknown <monty@mashka.mysql.fi> | 2003-10-15 15:21:50 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-10-15 15:21:50 +0300 |
commit | 4f5887b22d5d900a0e6166ff26f50d8c09e969f9 (patch) | |
tree | 9cc19f94e3a25a6b3039a5cdf12e8f0d6fe75009 /sql/sql_test.cc | |
parent | d1ed51db824c8335dc6b4617d09b600f3c918506 (diff) | |
download | mariadb-git-4f5887b22d5d900a0e6166ff26f50d8c09e969f9.tar.gz |
Add more information about memory usage to debug log
sql/sql_test.cc:
Add more information about memory usage
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index fc3147db784..6498a52cc09 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -194,6 +194,8 @@ void mysql_print_status(THD *thd) printf("\nStatus information:\n\n"); my_getwd(current_dir, sizeof(current_dir),MYF(0)); printf("Current dir: %s\n", current_dir); + printf("Running threads: %d Stack size: %ld\n", thread_count, + (long) thread_stack); if (thd) thd->proc_info="locks"; thr_print_locks(); // Write some debug info @@ -271,8 +273,9 @@ Maximum total allocated space: %d\n\ Space available in freed fastbin blocks: %d\n\ Total allocated space: %d\n\ Total free space: %d\n\ -Top-most, releasable space: %d\n", - (int) info.arena, +Top-most, releasable space: %d\n\ +Estimated memory (with thread stack): %ld\n", + (int) info.arena , (int) info.ordblks, (int) info.smblks, (int) info.hblks, @@ -281,7 +284,8 @@ Top-most, releasable space: %d\n", (int) info.fsmblks, (int) info.uordblks, (int) info.fordblks, - (int) info.keepcost); + (int) info.keepcost, + (long) (thread_count * thread_stack + info.hblkhd + info.arena)); #endif puts(""); if (thd) |