[Webkit-unassigned] [Bug 158413] New: Web Inspector: Native frames when refreshing page during timeline recording even though frames aren't native

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 5 22:18:24 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=158413

            Bug ID: 158413
           Summary: Web Inspector: Native frames when refreshing page
                    during timeline recording even though frames aren't
                    native
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sbarati at apple.com
                CC: bburg at apple.com, graouts at webkit.org,
                    joepeck at webkit.org, mattbaker at apple.com,
                    nvasilyev at apple.com, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

Consider this program:
```
var shouldComputeSin = false;
var shouldComputeCos = true;

function computeSin(obj, x) {
    if (shouldComputeSin)
        obj.sin = Math.sin(x);
}

function computeCos(obj, x) {
    if (shouldComputeCos)
        obj.sin = Math.cos(x);
}

function computeResults(x) {
    var obj = {};
    computeSin(obj, x);
    computeCos(obj, x);
}

for (var i = 0; i < 1000000; i++) {
    computeResults(i);
}
```

Put that in a <script> inside a page. Open Web Inspector. Record a timeline.
Refresh the page 10 times. The call tree will have 10 duplicates at the same
tree representing the above program. If you select that last of the 10 refreshes,
only that tree has frames that aren't native frames. The first 9 all have native frames
for all their frames even though they are all user defined functions/programs.
(Feel free to replace 10 with another number: Anything > 2).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160606/afd21818/attachment.html>


More information about the webkit-unassigned mailing list