RESOLVED FIXED 76855
Implement a JIT-code aware sampling profiler for JSC
https://bugs.webkit.org/show_bug.cgi?id=76855
Summary Implement a JIT-code aware sampling profiler for JSC
Gavin Barraclough
Reported 2012-01-23 13:04:58 PST
We should be able to implement an non-intrusive mechanism to sample activity, recording the current running codeblock, able to generate profiles showing statistical distribution of time between JITs, JS functions, etc.
Attachments
Pt2, generalize RedBlackTree (25.08 KB, patch)
2012-01-23 15:02 PST, Gavin Barraclough
no flags
Ooops, revert unnecessary change to MetaAllocatorHandle (24.35 KB, patch)
2012-01-23 15:06 PST, Gavin Barraclough
ggaren: review+
Add mechanism to MetaAllocator to allow allocations to be tracked. (8.37 KB, patch)
2012-01-24 17:00 PST, Gavin Barraclough
oliver: review+
The profiler. Will probably require some PLATFORM(MAC) guards to make this compiler on non-OS X builds. (51.78 KB, patch)
2012-01-27 15:10 PST, Gavin Barraclough
oliver: review+
webkit.review.bot: commit-queue-
Build fixes (patch already reviewed by oliver) (54.74 KB, patch)
2012-01-27 16:05 PST, Gavin Barraclough
no flags
More build fixes (patch already reviewed by oliver) (56.50 KB, patch)
2012-01-27 16:36 PST, Gavin Barraclough
webkit-ews: commit-queue-
More build fixes (patch already reviewed by oliver) (56.53 KB, patch)
2012-01-27 17:11 PST, Gavin Barraclough
no flags
More build fixes (patch already reviewed by oliver) (56.99 KB, patch)
2012-01-27 17:14 PST, Gavin Barraclough
gustavo: commit-queue-
More build fixes (patch already reviewed by oliver) (57.36 KB, patch)
2012-01-27 18:04 PST, Gavin Barraclough
gustavo: commit-queue-
More build fixes (patch already reviewed by oliver) (57.93 KB, patch)
2012-01-27 18:27 PST, Gavin Barraclough
no flags
More build fixes (patch already reviewed by oliver) (57.96 KB, patch)
2012-01-27 18:34 PST, Gavin Barraclough
webkit-ews: commit-queue-
More build fixes (patch already reviewed by oliver) (58.04 KB, patch)
2012-01-27 19:00 PST, Gavin Barraclough
gyuyoung.kim: commit-queue-
More build fixes (patch already reviewed by oliver) (58.35 KB, patch)
2012-01-27 23:01 PST, Gavin Barraclough
no flags
Gavin Barraclough
Comment 1 2012-01-23 13:09:05 PST
Part 1 landed in r105636.
Gavin Barraclough
Comment 2 2012-01-23 15:02:36 PST
Created attachment 123631 [details] Pt2, generalize RedBlackTree
Gavin Barraclough
Comment 3 2012-01-23 15:06:15 PST
Created attachment 123632 [details] Ooops, revert unnecessary change to MetaAllocatorHandle
Geoffrey Garen
Comment 4 2012-01-23 15:10:43 PST
Comment on attachment 123632 [details] Ooops, revert unnecessary change to MetaAllocatorHandle View in context: https://bugs.webkit.org/attachment.cgi?id=123632&action=review r=me > Source/JavaScriptCore/ChangeLog:8 > + Step 2: generalize RedBlackTree. The profiler is going to want tio use Typo: tio.
Gavin Barraclough
Comment 5 2012-01-23 15:31:21 PST
pt 2 landed in r105646
Gavin Barraclough
Comment 6 2012-01-23 17:23:11 PST
Oooops, shouldn't have marked as fixed yet! Also, build fix in r105666.
Gavin Barraclough
Comment 7 2012-01-24 17:00:32 PST
Created attachment 123845 [details] Add mechanism to MetaAllocator to allow allocations to be tracked.
Gavin Barraclough
Comment 8 2012-01-27 15:10:08 PST
Created attachment 124378 [details] The profiler. Will probably require some PLATFORM(MAC) guards to make this compiler on non-OS X builds.
WebKit Review Bot
Comment 9 2012-01-27 15:13:33 PST
Attachment 124378 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp:36: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 10 2012-01-27 15:13:42 PST
Comment on attachment 124378 [details] The profiler. Will probably require some PLATFORM(MAC) guards to make this compiler on non-OS X builds. Attachment 124378 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11359180
Gyuyoung Kim
Comment 11 2012-01-27 15:55:01 PST
Comment on attachment 124378 [details] The profiler. Will probably require some PLATFORM(MAC) guards to make this compiler on non-OS X builds. Attachment 124378 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/11359190
Gavin Barraclough
Comment 12 2012-01-27 16:05:03 PST
Created attachment 124391 [details] Build fixes (patch already reviewed by oliver)
WebKit Review Bot
Comment 13 2012-01-27 16:07:54 PST
Attachment 124391 [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/Target.pri:212: Line contains tab character. [whitespace/tab] [5] Source/JavaScriptCore/Target.pri:213: Line contains tab character. [whitespace/tab] [5] Source/JavaScriptCore/CMakeLists.txt:203: Line contains tab character. [whitespace/tab] [5] Source/JavaScriptCore/CMakeLists.txt:204: Line contains tab character. [whitespace/tab] [5] Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp:34: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 5 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gavin Barraclough
Comment 14 2012-01-27 16:36:15 PST
Created attachment 124398 [details] More build fixes (patch already reviewed by oliver)
Early Warning System Bot
Comment 15 2012-01-27 17:09:01 PST
Comment on attachment 124398 [details] More build fixes (patch already reviewed by oliver) Attachment 124398 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/11359226
Gavin Barraclough
Comment 16 2012-01-27 17:11:37 PST
Created attachment 124403 [details] More build fixes (patch already reviewed by oliver)
Gavin Barraclough
Comment 17 2012-01-27 17:14:04 PST
Created attachment 124404 [details] More build fixes (patch already reviewed by oliver)
Gustavo Noronha (kov)
Comment 18 2012-01-27 17:35:18 PST
Comment on attachment 124404 [details] More build fixes (patch already reviewed by oliver) Attachment 124404 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/11359241
Early Warning System Bot
Comment 19 2012-01-27 17:42:46 PST
Comment on attachment 124404 [details] More build fixes (patch already reviewed by oliver) Attachment 124404 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/11358356
Gyuyoung Kim
Comment 20 2012-01-27 17:46:52 PST
Comment on attachment 124404 [details] More build fixes (patch already reviewed by oliver) Attachment 124404 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/11358358
Gavin Barraclough
Comment 21 2012-01-27 18:04:48 PST
Created attachment 124411 [details] More build fixes (patch already reviewed by oliver)
Gustavo Noronha (kov)
Comment 22 2012-01-27 18:17:01 PST
Comment on attachment 124411 [details] More build fixes (patch already reviewed by oliver) Attachment 124411 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/11360226
Early Warning System Bot
Comment 23 2012-01-27 18:23:28 PST
Comment on attachment 124411 [details] More build fixes (patch already reviewed by oliver) Attachment 124411 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/11191933
Gavin Barraclough
Comment 24 2012-01-27 18:27:01 PST
Created attachment 124418 [details] More build fixes (patch already reviewed by oliver)
Gavin Barraclough
Comment 25 2012-01-27 18:34:33 PST
Created attachment 124421 [details] More build fixes (patch already reviewed by oliver)
Early Warning System Bot
Comment 26 2012-01-27 18:58:17 PST
Comment on attachment 124421 [details] More build fixes (patch already reviewed by oliver) Attachment 124421 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/11360243
Gavin Barraclough
Comment 27 2012-01-27 19:00:21 PST
Created attachment 124423 [details] More build fixes (patch already reviewed by oliver)
Gyuyoung Kim
Comment 28 2012-01-27 19:26:52 PST
Comment on attachment 124423 [details] More build fixes (patch already reviewed by oliver) Attachment 124423 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/11360246
Gavin Barraclough
Comment 29 2012-01-27 23:01:52 PST
Created attachment 124430 [details] More build fixes (patch already reviewed by oliver)
Gavin Barraclough
Comment 30 2012-01-28 19:47:43 PST
Fixed in r106197
mitz
Comment 31 2012-01-29 09:33:48 PST
Gavin Barraclough
Comment 32 2012-01-30 11:27:09 PST
build fix in r106264.
Gavin Barraclough
Comment 33 2012-01-30 12:38:50 PST
Interpreter build fixed in r106276
Note You need to log in before you can comment on or make changes to this bug.