[sysprof] preload: setup cache size for libunwind
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] preload: setup cache size for libunwind
- Date: Mon, 17 Feb 2020 20:05:56 +0000 (UTC)
commit ebeba626693df7862f5487d8e5bfe271045c8fe2
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 17 12:03:02 2020 -0800
preload: setup cache size for libunwind
src/libsysprof/preload/sysprof-memory-collector.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libsysprof/preload/sysprof-memory-collector.c
b/src/libsysprof/preload/sysprof-memory-collector.c
index 232c9dd..27b8b40 100644
--- a/src/libsysprof/preload/sysprof-memory-collector.c
+++ b/src/libsysprof/preload/sysprof-memory-collector.c
@@ -64,6 +64,7 @@ collector_init_ctor (void)
{
#if ENABLE_LIBUNWIND
unw_set_caching_policy (unw_local_addr_space, UNW_CACHE_PER_THREAD);
+ unw_set_cache_size (unw_local_addr_space, 1024, 0);
#endif
sysprof_collector_init ();
collector_ready = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]