Bug 1247671: Increase the crash logging length to 16 by default (+ small white space change in the comments) r=dvander

MozReview-Commit-ID: 9KH6ZdWInZM

--HG--
extra : rebase_source : 62d608c0fd859586a129d9663b92aa634bca1c7d
This commit is contained in:
Milan Sreckovic 2016-02-11 13:04:20 -05:00
Родитель 39c3995d68
Коммит e9025efa1b
3 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -96,8 +96,7 @@ public:
/// In the event of a crash, the crash report is annotated with first and
/// the last few of these errors, under the key GraphicsCriticalError.
/// The total number of errors stored in the crash report is controlled
/// by preference gfx.logging.crash.length (default is six, so by default,
/// the first as well as the last five would show up in the crash log.)
/// by preference gfx.logging.crash.length.
///
/// On platforms that support MOZ_LOGGING, the story is slightly more involved.
/// In that case, unless gfx.logging.level is set to 4 or higher, the output

Просмотреть файл

@ -272,7 +272,7 @@ void CrashStatsLogForwarder::UpdateCrashReport()
{
std::stringstream message;
for(LoggingRecord::iterator it = mBuffer.begin(); it != mBuffer.end(); ++it) {
message << "|[" << Get<0>(*it) << "]" << Get<1>(*it) << " (t=" << Get<2>(*it) << ")";
message << "|[" << Get<0>(*it) << "]" << Get<1>(*it) << " (t=" << Get<2>(*it) << ") ";
}
#ifdef MOZ_CRASHREPORTER

Просмотреть файл

@ -261,7 +261,7 @@ private:
DECL_GFX_PREF(Live, "gfx.layerscope.enabled", LayerScopeEnabled, bool, false);
DECL_GFX_PREF(Live, "gfx.layerscope.port", LayerScopePort, int32_t, 23456);
// Note that "gfx.logging.level" is defined in Logging.h
DECL_GFX_PREF(Once, "gfx.logging.crash.length", GfxLoggingCrashLength, uint32_t, 6);
DECL_GFX_PREF(Once, "gfx.logging.crash.length", GfxLoggingCrashLength, uint32_t, 16);
// The maximums here are quite conservative, we can tighten them if problems show up.
DECL_GFX_PREF(Once, "gfx.max-alloc-size", MaxAllocSize, int32_t, (int32_t)500000000);
DECL_GFX_PREF(Once, "gfx.max-texture-size", MaxTextureSize, int32_t, (int32_t)32767);