RESOLVED FIXED Bug 28969
Add "sampling profiler" preference, simplify data display when it's set
https://bugs.webkit.org/show_bug.cgi?id=28969
Summary Add "sampling profiler" preference, simplify data display when it's set
Mikhail Naganov
Reported 2009-09-04 05:22:53 PDT
When a sampling profiler is used, it differs from an instrumentation profiler in two ways: - first, there is no data for 'calls count' and 'average call duration' data grid columns; - second, displaying fractions of milliseconds is meaningless, because a sampling profiler can't provide such accuracy. Thus, my proposal is to introduce a corresponding preference, and to update profiles panel code as necessary.
Attachments
Proposed change (2.69 KB, patch)
2009-09-04 05:26 PDT, Mikhail Naganov
timothy: review-
Proposed change (2.69 KB, patch)
2009-09-04 08:43 PDT, Mikhail Naganov
timothy: review-
Comment now addressed. (2.69 KB, patch)
2009-09-04 09:09 PDT, Mikhail Naganov
timothy: review-
Indentation fixed (2.69 KB, patch)
2009-09-04 10:12 PDT, Mikhail Naganov
timothy: review+
Mikhail Naganov
Comment 1 2009-09-04 05:26:37 PDT
Created attachment 39053 [details] Proposed change
Timothy Hatcher
Comment 2 2009-09-04 07:28:05 PDT
Comment on attachment 39053 [details] Proposed change samplingCpuProfiler should be samplingCPUProfiler per our style guidlines. > "function": { title: WebInspector.UIString("Function"), disclosure: true, sortable: true } }; > + if (Preferences.samplingCpuProfiler) { > + delete columns.average; > + delete columns.calls; > + } Add an empty line before the if.
Mikhail Naganov
Comment 3 2009-09-04 08:43:23 PDT
Created attachment 39059 [details] Proposed change Comment addressed
Timothy Hatcher
Comment 4 2009-09-04 09:00:18 PDT
Comment on attachment 39059 [details] Proposed change You missed my more important samplingCpuProfiler -> samplingCPUProfiler comment.
Mikhail Naganov
Comment 5 2009-09-04 09:09:03 PDT
Created attachment 39063 [details] Comment now addressed. Oh, I'm sorry. Yes, I've missed that line.
Timothy Hatcher
Comment 6 2009-09-04 09:10:41 PDT
Comment on attachment 39063 [details] Comment now addressed. Opps. Sorry I missed this earlier.. + if (Preferences.samplingCPUProfiler) { + delete columns.average; + delete columns.calls; + } You need to use 4 space indents.
Mikhail Naganov
Comment 7 2009-09-04 10:12:17 PDT
Created attachment 39073 [details] Indentation fixed Oh, I'm really really sorry. I should have different editor settings for WebKit patches.
Pavel Feldman
Comment 8 2009-09-04 14:11:51 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/front-end/ProfileDataGridTree.js M WebCore/inspector/front-end/ProfileView.js M WebCore/inspector/front-end/inspector.js Committed r48074
Note You need to log in before you can comment on or make changes to this bug.