summaryrefslogtreecommitdiff
path: root/src/lib/eet/eet_data.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-10-11 14:43:35 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-10-11 14:43:35 +0900
commitc718a4172874a4b539af2ca9697ebe4142fe996c (patch)
tree286999043bf43d316cefd657a4a0b6482d8ea3c2 /src/lib/eet/eet_data.c
parent7caef271dc7d52b119d3ca607ec8721fc2660b5e (diff)
eet: log size of subtype added to an Eet_Data_Descriptor.
This is really useful to track down a leak of a memory piece allocated by an eet_data function. If you know the size of the leaked structure (valgrind give you the total allocated size and the number of structure in it, so you need to divide before having the right number), you just need to do : EINA_LOG_LEVELS=eet:3 my_app 2>&1 | grep the_size And there will be very few line matching reducing what you should be looking at.
Diffstat (limited to '')
-rw-r--r--src/lib/eet/eet_data.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/eet/eet_data.c b/src/lib/eet/eet_data.c
index 23d5504661..e4a0d26d68 100644
--- a/src/lib/eet/eet_data.c
+++ b/src/lib/eet/eet_data.c
@@ -2240,6 +2240,11 @@ eet_data_descriptor_element_add(Eet_Data_Descriptor *edd,
2240/* ede->counter_offset = counter_offset; */ 2240/* ede->counter_offset = counter_offset; */
2241 ede->counter_name = counter_name; 2241 ede->counter_name = counter_name;
2242 2242
2243 if (subtype)
2244 INF("Adding '%s' of size %i to '%s' at offset %i.",
2245 subtype->name, subtype->size,
2246 edd->name, offset);
2247
2243 ede->subtype = subtype; 2248 ede->subtype = subtype;
2244} 2249}
2245 2250