Bug 1247953 - Increase the number of stored ConsoleEvent objects, r=bgrinstead
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 19 Apr 2016 14:10:15 +0200
changeset 331748 894e3c1ce7998d21cb193bdf66817ebd794c11e8
parent 331747 2f3a6b7cd4b3e4a70be8b8849d4a9d0a11fe5100
child 331749 68b14d04ea4e78be6e905a739df95e74cd1f97fd
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrinstead
bugs1247953
milestone48.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 1247953 - Increase the number of stored ConsoleEvent objects, r=bgrinstead
dom/base/Console.cpp
dom/base/ConsoleAPIStorage.js
--- a/dom/base/Console.cpp
+++ b/dom/base/Console.cpp
@@ -52,17 +52,17 @@
 // console.trace().
 #define DEFAULT_MAX_STACKTRACE_DEPTH 200
 
 // This tags are used in the Structured Clone Algorithm to move js values from
 // worker thread to main thread
 #define CONSOLE_TAG_BLOB   JS_SCTAG_USER_MIN
 
 // This value is taken from ConsoleAPIStorage.js
-#define STORAGE_MAX_EVENTS 200
+#define STORAGE_MAX_EVENTS 1000
 
 using namespace mozilla::dom::exceptions;
 using namespace mozilla::dom::workers;
 
 namespace mozilla {
 namespace dom {
 
 struct
--- a/dom/base/ConsoleAPIStorage.js
+++ b/dom/base/ConsoleAPIStorage.js
@@ -9,17 +9,17 @@ var Ci = Components.interfaces;
 var Cc = Components.classes;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 
 // This constant tells how many messages to process in a single timer execution.
 const MESSAGES_IN_INTERVAL = 1500
 
-const STORAGE_MAX_EVENTS = 200;
+const STORAGE_MAX_EVENTS = 1000;
 
 var _consoleStorage = new Map();
 
 const CONSOLEAPISTORAGE_CID = Components.ID('{96cf7855-dfa9-4c6d-8276-f9705b4890f2}');
 
 /**
  * The ConsoleAPIStorage is meant to cache window.console API calls for later
  * reuse by other components when needed. For example, the Web Console code can