diff options
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | src/callgraph-ring.c | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index ecbd231..691c804 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ -bin_PROGRAMS = memfault +bin_PROGRAMS = memfault-gui -memfault_SOURCES = \ +memfault_gui_SOURCES = \ src/memfault.h \ src/app.c \ src/blockmap.c \ @@ -14,5 +14,5 @@ memfault_SOURCES = \ src/callgraph-ring.c \ src/callgraph-treemap.c \ src/utils.c -memfault_CFLAGS = @MEMFAULT_CFLAGS@ @gtk_CFLAGS@ -memfault_LDADD = @gtk_LIBS@ +memfault_gui_CFLAGS = @MEMFAULT_CFLAGS@ @gtk_CFLAGS@ +memfault_gui_LDADD = @gtk_LIBS@ diff --git a/src/callgraph-ring.c b/src/callgraph-ring.c index cda7a26..14589e2 100644 --- a/src/callgraph-ring.c +++ b/src/callgraph-ring.c @@ -123,6 +123,9 @@ _call_graph_ring_get_parents (CallGraphRing *self, (gpointer) frame->function, accum); } + if (frame->allocs > accum->frame->allocs) + accum->frame = frame; + accum->allocs += frame->allocs; accum->bytes += frame->bytes; sum_allocs += frame->allocs; |