Bug 104497

Summary: Profiler should say things about OSR exits
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, ggaren, gyuyoung.kim, mark.lam, mhahnenberg, msaboff, oliver, philn, rakuco, sam, webkit-ews, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
sample profiling session
none
the patch
none
the patch
none
the patch
webkit-ews: commit-queue-
sample profiling session
none
the patch
none
the patch
none
the patch oliver: review+

Description Filip Pizlo 2012-12-09 15:38:24 PST
Where they happened.  How many times they happened.  Patch forthcoming.
Comment 1 Filip Pizlo 2012-12-09 15:46:58 PST
Created attachment 178441 [details]
sample profiling session

Shows a sample profiling session where I investigate a code block that has a lot of exits and recompilations.  Note how I can see all of the exits that happened just by looking at the bytecode.  This is so full of win, I'm really proud of myself.  Then I look at the most recent DFG compilation and see that we're exiting because an "undefined" is flowing into something that we statically assume to be a cell.
Comment 2 Filip Pizlo 2012-12-09 15:49:44 PST
Created attachment 178442 [details]
the patch

This will cause some of the build systems to puke.  I'll fix that shortly.
Comment 3 Filip Pizlo 2012-12-09 15:57:53 PST
Created attachment 178443 [details]
the patch

Fix things maybe
Comment 4 Filip Pizlo 2012-12-09 16:08:07 PST
Created attachment 178445 [details]
the patch

Rebased.
Comment 5 Filip Pizlo 2012-12-09 16:13:08 PST
Created attachment 178446 [details]
sample profiling session
Comment 6 Early Warning System Bot 2012-12-09 16:16:52 PST
Comment on attachment 178445 [details]
the patch

Attachment 178445 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/15238252
Comment 7 Early Warning System Bot 2012-12-09 16:20:37 PST
Comment on attachment 178445 [details]
the patch

Attachment 178445 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/15242047
Comment 8 Filip Pizlo 2012-12-09 16:24:36 PST
Created attachment 178448 [details]
the patch

More build system fixes.
Comment 9 WebKit Review Bot 2012-12-09 16:26:56 PST
Attachment 178448 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/CMakeLists.txt', u'S..." exit_code: 1
Source/JavaScriptCore/bytecode/ExitKind.h:46:  The parameter name "kind" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/JavaScriptCore/bytecode/ExitKind.h:47:  The parameter name "kind" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 2 in 29 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 Filip Pizlo 2012-12-09 16:30:14 PST
Created attachment 178449 [details]
the patch

Fix style
Comment 11 Filip Pizlo 2012-12-09 16:43:48 PST
Created attachment 178451 [details]
the patch

ungimp the gtk
Comment 12 Filip Pizlo 2012-12-10 10:26:52 PST
Landed in http://trac.webkit.org/changeset/137175