mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: port GPtrArray sort to gtk_tim_sort()
This commit is contained in:
@ -20,7 +20,10 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "timsort/gtktimsortprivate.h"
|
||||
|
||||
#include <gio/gio.h>
|
||||
|
||||
#include <eggbitset.h>
|
||||
|
||||
#include "sysprof-address-layout-private.h"
|
||||
@ -204,7 +207,11 @@ sysprof_address_layout_lookup (SysprofAddressLayout *self,
|
||||
|
||||
self->mmaps_dirty = FALSE;
|
||||
|
||||
g_ptr_array_sort (self->mmaps, compare_mmaps);
|
||||
gtk_tim_sort (self->mmaps->pdata,
|
||||
self->mmaps->len,
|
||||
sizeof (gpointer),
|
||||
(GCompareDataFunc)compare_mmaps,
|
||||
NULL);
|
||||
dups = find_duplicates (self->mmaps);
|
||||
|
||||
if (egg_bitset_iter_init_last (&iter, dups, &i))
|
||||
|
||||
Reference in New Issue
Block a user