diff options
| author | yangwei <[email protected]> | 2024-04-07 15:56:52 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-04-07 15:56:52 +0800 |
| commit | 5aad95d4115764713f111bdc26e0890e05c750ed (patch) | |
| tree | 39701a189b77e430a42c0eb1db489b3431412891 | |
| parent | 754af75f68caec3f7d5ece0275e957c09c267568 (diff) | |
✨ feat(signal handle): user1 signal, call malloc_stats_print
| -rw-r--r-- | src/sapp_dev/sapp_plug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sapp_dev/sapp_plug.c b/src/sapp_dev/sapp_plug.c index b088ed4..6e33738 100644 --- a/src/sapp_dev/sapp_plug.c +++ b/src/sapp_dev/sapp_plug.c @@ -59,6 +59,7 @@ static void signal_usr1_handler(int signo) char tmp[128]; unsigned narenas = 0; size_t sz = sizeof(unsigned); + malloc_stats_print(NULL, NULL, NULL); printf("%s: jemalloc enabled, starting purge dirty pages at %llu\n", __FUNCTION__, (unsigned long long)time(NULL)); /*��ȡarenas�ĸ�����Ȼ�����jemalloc�Ľӿڽ������� */ if (!mallctl("arenas.narenas", &narenas, &sz, NULL, 0)) |
