raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=76ed02100600e8d1fde8439eeb98fd7260afc9e1

commit 76ed02100600e8d1fde8439eeb98fd7260afc9e1
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 19 08:23:52 2016 +0900

    e - e_start - update mtrack to use new debug mode for hunting bugs
    
    this won't affect anyone who doesnt have a ~/.e-mtrack file ... this
    is for debugging purposes and no others
---
 src/bin/e_start_main.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c
index 999693f..132102c 100644
--- a/src/bin/e_start_main.c
+++ b/src/bin/e_start_main.c
@@ -617,7 +617,7 @@ main(int argc, char **argv)
    if (home)
      {
         const char *tmps;
-#if 0
+#if 1
         FILE *f;
         /* mtrack memory tracker support */
         /* if you have ~/.e-mtrack, then the tracker will be enabled
@@ -636,10 +636,15 @@ main(int argc, char **argv)
                        len--;
                     }
                   env_set("LD_PRELOAD", buf);
-                  env_set("MTRACK", "track");
-                  env_set("E_START_MTRACK", "track");
-                  snprintf(buf, sizeof(buf), "%s/.e-mtrack.log", home);
-                  env_set("MTRACK_TRACE_FILE", buf);
+//                  env_set("MTRACK", "track");
+//                  env_set("E_START_MTRACK", "track");
+//                  snprintf(buf, sizeof(buf), "%s/.e-mtrack.log", home);
+//                  env_set("MTRACK_TRACE_FILE", buf);
+                  env_set("MTRACK", "debug");
+                  env_set("MTRACK_FREE_FILL", "1");
+                  env_set("MTRACK_ALLOC_FILL", "2");
+                  env_set("MTRACK_CANARY_SIZE", "16");
+                  env_set("MTRACK_CANARY", "3");
                }
              fclose(f);
           }

-- 


Reply via email to