[sysprof/wip/chergert/mem-preload: 30/43] memprof: disable raxInsert for now
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/mem-preload: 30/43] memprof: disable raxInsert for now
- Date: Sat, 8 Feb 2020 01:00:53 +0000 (UTC)
commit 7c6d1c6d91d822f46670f48c23144f59f09306c1
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 4 17:27:26 2020 -0800
memprof: disable raxInsert for now
We will need this later, but we can avoid the work for now
src/libsysprof/sysprof-memprof-profile.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/libsysprof/sysprof-memprof-profile.c b/src/libsysprof/sysprof-memprof-profile.c
index 0b41074..5422b3d 100644
--- a/src/libsysprof/sysprof-memprof-profile.c
+++ b/src/libsysprof/sysprof-memprof-profile.c
@@ -227,12 +227,14 @@ cursor_foreach_cb (const SysprofCaptureFrame *frame,
/* Handle removal frames */
if (frame->type == SYSPROF_CAPTURE_FRAME_MEMORY_FREE)
{
+#if 0
const SysprofCaptureMemoryFree *ev = (const SysprofCaptureMemoryFree *)frame;
raxRemove (g->rax,
(guint8 *)&ev->alloc_addr,
sizeof ev->alloc_addr,
NULL);
+#endif
return TRUE;
}
@@ -258,11 +260,13 @@ cursor_foreach_cb (const SysprofCaptureFrame *frame,
StackNode *node;
guint len = 5;
+#if 0
raxInsert (g->rax,
(guint8 *)&ev->alloc_addr,
sizeof ev->alloc_addr,
(gpointer)ev->alloc_size,
NULL);
+#endif
node = stack_stash_add_trace (g->building, ev->addrs, ev->n_addrs, ev->alloc_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]