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

Side by Side Diff: Source/devtools/front_end/sdk/CPUProfilerModel.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 WebInspector.CPUProfilerModel.prototype = { 53 WebInspector.CPUProfilerModel.prototype = {
54 54
55 _configureCpuProfilerSamplingInterval: function() 55 _configureCpuProfilerSamplingInterval: function()
56 { 56 {
57 var intervalUs = WebInspector.settings.highResolutionCpuProfiling.get() ? 100 : 1000; 57 var intervalUs = WebInspector.settings.highResolutionCpuProfiling.get() ? 100 : 1000;
58 this.target().profilerAgent().setSamplingInterval(intervalUs, didChangeI nterval); 58 this.target().profilerAgent().setSamplingInterval(intervalUs, didChangeI nterval);
59 function didChangeInterval(error) 59 function didChangeInterval(error)
60 { 60 {
61 if (error) 61 if (error)
62 WebInspector.console.addErrorMessage(error, true); 62 WebInspector.console.error(error);
63 } 63 }
64 }, 64 },
65 65
66 /** 66 /**
67 * @param {string} id 67 * @param {string} id
68 * @param {!DebuggerAgent.Location} scriptLocation 68 * @param {!DebuggerAgent.Location} scriptLocation
69 * @param {!ProfilerAgent.CPUProfile} cpuProfile 69 * @param {!ProfilerAgent.CPUProfile} cpuProfile
70 * @param {string=} title 70 * @param {string=} title
71 */ 71 */
72 consoleProfileFinished: function(id, scriptLocation, cpuProfile, title) 72 consoleProfileFinished: function(id, scriptLocation, cpuProfile, title)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 }, 122 },
123 123
124 124
125 __proto__: WebInspector.SDKObject.prototype 125 __proto__: WebInspector.SDKObject.prototype
126 } 126 }
127 127
128 /** 128 /**
129 * @type {!WebInspector.CPUProfilerModel} 129 * @type {!WebInspector.CPUProfilerModel}
130 */ 130 */
131 WebInspector.cpuProfilerModel; 131 WebInspector.cpuProfilerModel;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698