Bug 157581 - Web Inspector: Script ProfileViews should be searchable
Summary: Web Inspector: Script ProfileViews should be searchable
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Matt Baker
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-05-11 13:22 PDT by Joseph Pecoraro
Modified: 2016-05-13 12:00 PDT (History)
8 users (show)

See Also:


Attachments
[Patch] Proposed Fix (15.89 KB, patch)
2016-05-12 19:17 PDT, Matt Baker
no flags Details | Formatted Diff | Diff
[Patch] Proposed Fix (16.07 KB, patch)
2016-05-13 00:12 PDT, Matt Baker
no flags Details | Formatted Diff | Diff
[Patch] Proposed Fix (16.07 KB, patch)
2016-05-13 00:19 PDT, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-05-11 13:22:30 PDT
* SUMMARY
Script ProfileViews should be filterable

Should be able to search for a particular function in a ProfileView.
Comment 1 Radar WebKit Bug Importer 2016-05-11 13:23:05 PDT
<rdar://problem/26228530>
Comment 2 Radar WebKit Bug Importer 2016-05-11 13:25:59 PDT
<rdar://problem/26228605>
Comment 3 Matt Baker 2016-05-12 19:17:54 PDT
Created attachment 278800 [details]
[Patch] Proposed Fix
Comment 4 Joseph Pecoraro 2016-05-12 22:25:30 PDT
Comment on attachment 278800 [details]
[Patch] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=278800&action=review

This looks good to me! We should stress test the performance of this briefly to ensure there are no unexpected side effects.

> Source/WebInspectorUI/UserInterface/Views/ScriptProfileTimelineView.js:139
> +            this.removeSubview(this._profileView);

This should probably removeEventListener to match the add below.

> Source/WebInspectorUI/UserInterface/Views/TimelineView.js:310
> +            if (!(node instanceof WebInspector.TimelineDataGridNode))
> +                return;

Nit: style
Comment 5 Matt Baker 2016-05-13 00:12:01 PDT
Created attachment 278821 [details]
[Patch] Proposed Fix
Comment 6 Matt Baker 2016-05-13 00:15:24 PDT
Comment on attachment 278821 [details]
[Patch] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=278821&action=review

> Source/WebInspectorUI/UserInterface/Views/ScriptClusterTimelineView.js:75
> +    selectRecord(record) { _contentViewContainer.currentContentView.selectRecord(record); }

Missing "this."
Comment 7 Matt Baker 2016-05-13 00:19:42 PDT
Created attachment 278822 [details]
[Patch] Proposed Fix
Comment 8 Matt Baker 2016-05-13 00:25:17 PDT
(In reply to comment #4)
> Comment on attachment 278800 [details]
> [Patch] Proposed Fix
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=278800&action=review
> 
> This looks good to me! We should stress test the performance of this briefly
> to ensure there are no unexpected side effects.

I did a few quick recordings comprised of multiple page navigations each (wired.com -> arstechnica.com -> cnn.com -> etc...), which resulted in > 45s of data and grids with > 50k records. Filtering the JavaScript & Events grids (details and call trees) had a noticeable delay of around 0.5-1s while typing.

My testing was far from rigorous, but indicates the perf impact is definitely acceptable for a first pass.
Comment 9 Matt Baker 2016-05-13 00:26:26 PDT
(In reply to comment #8)
> (In reply to comment #4)
> > Comment on attachment 278800 [details]
> > [Patch] Proposed Fix
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=278800&action=review
> > 
> > This looks good to me! We should stress test the performance of this briefly
> > to ensure there are no unexpected side effects.
> 
> I did a few quick recordings comprised of multiple page navigations each
> (wired.com -> arstechnica.com -> cnn.com -> etc...), which resulted in > 45s
> of data and grids with > 50k records. Filtering the JavaScript & Events
> grids (details and call trees) had a noticeable delay of around 0.5-1s while

Events and Call Trees
Comment 10 Joseph Pecoraro 2016-05-13 11:31:42 PDT
Yeah, I just played with the patch. Performance is great for my basic tests so far, I think this would be really great to land now and improve later if we encounter issues!
Comment 11 Joseph Pecoraro 2016-05-13 11:36:44 PDT
Comment on attachment 278822 [details]
[Patch] Proposed Fix

r=me
Comment 12 WebKit Commit Bot 2016-05-13 12:00:43 PDT
Comment on attachment 278822 [details]
[Patch] Proposed Fix

Clearing flags on attachment: 278822

Committed r200873: <http://trac.webkit.org/changeset/200873>
Comment 13 WebKit Commit Bot 2016-05-13 12:00:48 PDT
All reviewed patches have been landed.  Closing bug.