Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js

Issue 2513483002: DevTools: introduce perf monitor actions w/ time budget for violations that are event handlers. (Closed)
Patch Set: expose locations instead of functions Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 (!InspectorFrontendHost.isUnderTest()) {
54 this._logAgent.startViolationsReport([ 54 this._logAgent.startViolationsReport([
55 {name: 'longTask', threshold: 50}, {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 ]); 58 ]);
58 } 59 }
59 } 60 }
60 } 61 }
61 62
62 /** 63 /**
63 * @param {!SDK.ExecutionContext} executionContext 64 * @param {!SDK.ExecutionContext} executionContext
64 * @param {string} text 65 * @param {string} text
65 * @param {boolean=} useCommandLineAPI 66 * @param {boolean=} useCommandLineAPI
66 */ 67 */
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 */ 636 */
636 _commandEvaluated(event) { 637 _commandEvaluated(event) {
637 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even t.data); 638 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even t.data);
638 } 639 }
639 }; 640 };
640 641
641 /** 642 /**
642 * @type {!SDK.MultitargetConsoleModel} 643 * @type {!SDK.MultitargetConsoleModel}
643 */ 644 */
644 SDK.multitargetConsoleModel; 645 SDK.multitargetConsoleModel;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698