| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 this._messages = []; | 43 this._messages = []; |
| 44 /** @type {!Map<number, !SDK.ConsoleMessage>} */ | 44 /** @type {!Map<number, !SDK.ConsoleMessage>} */ |
| 45 this._messageByExceptionId = new Map(); | 45 this._messageByExceptionId = new Map(); |
| 46 this._warnings = 0; | 46 this._warnings = 0; |
| 47 this._errors = 0; | 47 this._errors = 0; |
| 48 this._revokedErrors = 0; | 48 this._revokedErrors = 0; |
| 49 this._logAgent = logAgent; | 49 this._logAgent = logAgent; |
| 50 if (this._logAgent) { | 50 if (this._logAgent) { |
| 51 target.registerLogDispatcher(new SDK.LogDispatcher(this)); | 51 target.registerLogDispatcher(new SDK.LogDispatcher(this)); |
| 52 this._logAgent.enable(); | 52 this._logAgent.enable(); |
| 53 if (!InspectorFrontendHost.isUnderTest()) { | 53 if (!Host.isUnderTest()) { |
| 54 this._logAgent.startViolationsReport([ | 54 this._logAgent.startViolationsReport([ |
| 55 {name: 'longTask', threshold: 200}, {name: 'longLayout', threshold: 30
}, | 55 {name: 'longTask', threshold: 200}, {name: 'longLayout', threshold: 30
}, |
| 56 {name: 'blockedEvent', threshold: 100}, {name: 'blockedParser', thresh
old: -1}, | 56 {name: 'blockedEvent', threshold: 100}, {name: 'blockedParser', thresh
old: -1}, |
| 57 {name: 'handler', threshold: 150}, {name: 'recurringHandler', threshol
d: 50} | 57 {name: 'handler', threshold: 150}, {name: 'recurringHandler', threshol
d: 50} |
| 58 ]); | 58 ]); |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 | 62 |
| 63 /** | 63 /** |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 */ | 636 */ |
| 637 _commandEvaluated(event) { | 637 _commandEvaluated(event) { |
| 638 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even
t.data); | 638 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even
t.data); |
| 639 } | 639 } |
| 640 }; | 640 }; |
| 641 | 641 |
| 642 /** | 642 /** |
| 643 * @type {!SDK.MultitargetConsoleModel} | 643 * @type {!SDK.MultitargetConsoleModel} |
| 644 */ | 644 */ |
| 645 SDK.multitargetConsoleModel; | 645 SDK.multitargetConsoleModel; |
| OLD | NEW |