summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-07 07:41:06 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-07 07:41:06 +0000
commitef3d8a7b8e5512a42d2d4d1e18d57f370a6f47fe (patch)
tree4fc2075304e0c657f0bed2ef9f0032ef81ee54fc /webkit
parentc8019e398fcee63eb95f2ed0873aca9475744799 (diff)
downloadchromium_src-ef3d8a7b8e5512a42d2d4d1e18d57f370a6f47fe.zip
chromium_src-ef3d8a7b8e5512a42d2d4d1e18d57f370a6f47fe.tar.gz
chromium_src-ef3d8a7b8e5512a42d2d4d1e18d57f370a6f47fe.tar.bz2
DevTools profiler: remove code due to WebKit Inspector upstreaming.
BUG=none TEST=none Review URL: http://codereview.chromium.org/202003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/devtools/js/devtools.js35
1 files changed, 1 insertions, 34 deletions
diff --git a/webkit/glue/devtools/js/devtools.js b/webkit/glue/devtools/js/devtools.js
index 2520f0f..f47d2cc 100644
--- a/webkit/glue/devtools/js/devtools.js
+++ b/webkit/glue/devtools/js/devtools.js
@@ -159,6 +159,7 @@ WebInspector.loaded = function() {
devtools.tools.reset();
Preferences.ignoreWhitespace = false;
+ Preferences.samplingCPUProfiler = true;
oldLoaded.call(this);
// Hide dock button on Mac OS.
@@ -276,40 +277,6 @@ WebInspector.ScriptsPanel.prototype.__defineGetter__(
})();
-// As columns in data grid can't be changed after initialization,
-// we need to intercept the constructor and modify columns upon creation.
-(function InterceptDataGridForProfiler() {
- var originalDataGrid = WebInspector.DataGrid;
- WebInspector.DataGrid = function(columns) {
- if (('average' in columns) && ('calls' in columns)) {
- delete columns['average'];
- delete columns['calls'];
- }
- return new originalDataGrid(columns);
- };
-})();
-
-
-// WebKit's profiler displays milliseconds with high resolution (shows
-// three digits after the decimal point). We never have such resolution,
-// as our minimal sampling rate is 1 ms. So we are disabling high resolution
-// to avoid visual clutter caused by meaningless ".000" parts.
-(function InterceptTimeDisplayInProfiler() {
- var originalDataGetter =
- WebInspector.ProfileDataGridNode.prototype.__lookupGetter__('data');
- WebInspector.ProfileDataGridNode.prototype.__defineGetter__('data',
- function() {
- var oldNumberSecondsToString = Number.secondsToString;
- Number.secondsToString = function(seconds, formatterFunction) {
- return oldNumberSecondsToString(seconds, formatterFunction, false);
- };
- var data = originalDataGetter.call(this);
- Number.secondsToString = oldNumberSecondsToString;
- return data;
- });
-})();
-
-
(function InterceptProfilesPanelEvents() {
var oldShow = WebInspector.ProfilesPanel.prototype.show;
WebInspector.ProfilesPanel.prototype.show = function() {