Bug 1275744 - Reference MOZ_LOG in leak_gauge. r=dbaron draft
authorRalph Giles <giles@mozilla.com>
Wed, 25 May 2016 15:21:04 -0700
changeset 377598 20c86b614c2a38cfe5a752ffd6290090f10b4283
parent 377515 b6f7d0eb61b1878d3d906bd231edf225463ece3f
child 377599 c941a26e92d9399d3f0c151f23b2be8c771c8f54
push id20838
push userbmo:giles@thaumas.net
push dateFri, 10 Jun 2016 20:57:58 +0000
reviewersdbaron
bugs1275744
milestone50.0a1
Bug 1275744 - Reference MOZ_LOG in leak_gauge. r=dbaron NSPR_LOG_MODULES is deprecated. MozReview-Commit-ID: 5mugF8txPPR
tools/leak-gauge/leak-gauge.html
tools/leak-gauge/leak-gauge.pl
--- a/tools/leak-gauge/leak-gauge.html
+++ b/tools/leak-gauge/leak-gauge.html
@@ -270,18 +270,18 @@ for many classes of leaks (those that in
 data structures) in Mozilla-based browsers.  It is designed to print
 information about what has leaked by processing a log taken while
 running the browser.  Such a log can be taken over a long session of
 normal browsing and then the log can be processed to find sites that
 leak.  Once a site is known to leak, the logging can then be repeated
 to figure out under what conditions the leak occurs.</p>
 
 <p>The way to create this log is to set the environment variables:</p>
-<pre>  NSPR_LOG_MODULES=DOMLeak:5,DocumentLeak:5,nsDocShellLeak:5,NodeInfoManagerLeak:5
-  NSPR_LOG_FILE=nspr.log     <i>(or any other filename of your choice)</i></pre>
+<pre>  MOZ_LOG=DOMLeak:5,DocumentLeak:5,nsDocShellLeak:5,NodeInfoManagerLeak:5
+  MOZ_LOG_FILE=nspr.log     <i>(or any other filename of your choice)</i></pre>
 <p>in your shell and then run the program.</p>
 <ul>
 <li>In a Windows command prompt, set environment variables with
 <pre>    set VAR=value</pre></li>
 <li> In an sh-based shell such as bash, set environment variables with
 <pre>    export VAR=value</pre></li>
 <li>In a csh-based shell such as tcsh, set environment variables with
 <pre>    setenv VAR value</pre></li>
--- a/tools/leak-gauge/leak-gauge.pl
+++ b/tools/leak-gauge/leak-gauge.pl
@@ -10,18 +10,18 @@
 # data structures) in Mozilla-based browsers.  It is designed to print
 # information about what has leaked by processing a log taken while
 # running the browser.  Such a log can be taken over a long session of
 # normal browsing and then the log can be processed to find sites that
 # leak.  Once a site is known to leak, the logging can then be repeated
 # to figure out under what conditions the leak occurs.
 #
 # The way to create this log is to set the environment variables:
-#   NSPR_LOG_MODULES=DOMLeak:5,DocumentLeak:5,nsDocShellLeak:5,NodeInfoManagerLeak:5
-#   NSPR_LOG_FILE=nspr.log     (or any other filename of your choice)
+#   MOZ_LOG=DOMLeak:5,DocumentLeak:5,nsDocShellLeak:5,NodeInfoManagerLeak:5
+#   MOZ_LOG_FILE=nspr.log     (or any other filename of your choice)
 # in your shell and then run the program.
 # * In a Windows command prompt, set environment variables with
 #     set VAR=value
 # * In an sh-based shell such as bash, set environment variables with
 #     export VAR=value
 # * In a csh-based shell such as tcsh, set environment variables with
 #     setenv VAR value
 #