Commit 600b8c22 authored by Debarshi Ray's avatar Debarshi Ray

debug: Add a debug flag for memory-related messages

We will use this to log the EggCounters before the process exits.
parent d8f647a7
/*
* Photos - access, organize and share your photos on GNOME
* Copyright © 2015 Pranav Kant
* Copyright © 2016 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
......@@ -38,6 +39,7 @@ photos_debug_init (void)
{
{ "dlna", PHOTOS_DEBUG_DLNA },
{ "gegl", PHOTOS_DEBUG_GEGL },
{ "memory", PHOTOS_DEBUG_MEMORY },
{ "network", PHOTOS_DEBUG_NETWORK },
{ "tracker", PHOTOS_DEBUG_TRACKER }
};
......
/*
* Photos - access, organize and share your photos on GNOME
* Copyright © 2015 Pranav Kant
* Copyright © 2016 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
......@@ -29,8 +30,9 @@ typedef enum
{
PHOTOS_DEBUG_DLNA = 1 << 0,
PHOTOS_DEBUG_GEGL = 1 << 1,
PHOTOS_DEBUG_NETWORK = 1 << 2,
PHOTOS_DEBUG_TRACKER = 1 << 3
PHOTOS_DEBUG_MEMORY = 1 << 2,
PHOTOS_DEBUG_NETWORK = 1 << 3,
PHOTOS_DEBUG_TRACKER = 1 << 4
} PhotosDebugFlags;
void photos_debug_init (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment