Bug 895933 - Record if a CC log is AllTraces or not. r=khuey
authorAndrew McCreight <amccreight@mozilla.com>
Fri, 19 Jul 2013 10:00:53 -0700
changeset 151561 90b25dd78e3ef8b5490f83b5b6db9d529683cc05
parent 151560 d4d9f284b3d014a7a5704f6e7fa9b6ce8e666f3e
child 151562 dab0ba7fb3f4b490e586ff961822ad2d60d070d0
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs895933
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 895933 - Record if a CC log is AllTraces or not. r=khuey
xpcom/base/nsCycleCollector.cpp
--- a/xpcom/base/nsCycleCollector.cpp
+++ b/xpcom/base/nsCycleCollector.cpp
@@ -1460,16 +1460,18 @@ public:
         // "incomplete-".
         mOutFile = CreateTempFile("incomplete-cc-edges");
         NS_ENSURE_STATE(mOutFile);
         MOZ_ASSERT(!mStream);
         mOutFile->OpenANSIFileDesc("w", &mStream);
         NS_ENSURE_STATE(mStream);
         MozillaRegisterDebugFILE(mStream);
 
+        fprintf(mStream, "# WantAllTraces=%s\n", mWantAllTraces ? "true" : "false");
+
         return NS_OK;
     }
     NS_IMETHOD NoteRefCountedObject(uint64_t aAddress, uint32_t refCount,
                                     const char *aObjectDescription)
     {
         if (!mDisableLog) {
             fprintf(mStream, "%p [rc=%u] %s\n", (void*)aAddress, refCount,
                     aObjectDescription);