[gnome-photos] debug: Add a debug flag for memory-related messages
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] debug: Add a debug flag for memory-related messages
- Date: Wed, 13 Jul 2016 15:00:21 +0000 (UTC)
commit 600b8c2228398dc565ca4c28a68ef78b7833ace3
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jul 13 16:52:07 2016 +0200
debug: Add a debug flag for memory-related messages
We will use this to log the EggCounters before the process exits.
src/photos-debug.c | 2 ++
src/photos-debug.h | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-debug.c b/src/photos-debug.c
index fc361d2..87e3dd5 100644
--- a/src/photos-debug.c
+++ b/src/photos-debug.c
@@ -1,6 +1,7 @@
/*
* 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 }
};
diff --git a/src/photos-debug.h b/src/photos-debug.h
index fe72875..bd4fab1 100644
--- a/src/photos-debug.h
+++ b/src/photos-debug.h
@@ -1,6 +1,7 @@
/*
* 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]