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 317651 894e3c1ce7998d21cb193bdf66817ebd794c11e8
parent 317650 2f3a6b7cd4b3e4a70be8b8849d4a9d0a11fe5100
child 317652 68b14d04ea4e78be6e905a739df95e74cd1f97fd
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrinstead
bugs1247953
milestone48.0a1
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