디지털 장인정신

블로그 이미지
WebKit개발자의 혼자쓰는 블로그
스페로

Article Category

All (71)
Technology (47)
Creativity (19)
Private (4)

Recent Comment

Recent Trackback

Calendar

«   2018/08   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Archive

My Link

  • Total331,196
  • Today11
  • Yesterday70

massif를 이용하면 메모리 사용량을 알 수 있습니다.

역시 valgrind tool중 하나 입니다.

luxtella@luxtella-T5500:bin(qt4.8.1)> valgrind --tool=massif ./QtTestBrowser

이렇게 실행하면 massif.out.8919 이런파일이 dump됩니다.

luxtella@luxtella-T5500:bin(qt4.8.1)> massif-visualizer ./massif.out.8919

이렇게 gui tool로 보면

1. 어느 모듈이 시간에 따라 얼마나 메모리를 사용했는지 알수 있고




2. 각 구간별로 그 메모리를 어떤 연유로 사용하게 됬는지 알 수 있습니다.
이게 편한 기능인데 WebKit안에서는 모두 fastMalloc으로 heap을 잡기 때문에 누가 heap을 잡았을까가 궁금한 부분이 잖아요.



'Technology > Webkit' 카테고리의 다른 글

WebKit Filters Animation Internal  (1) 2012.10.20
WebKit2 Injected Bundle  (1) 2012.10.15
oprofile  (2) 2012.06.02
massif 메모리 사용량을 측정하자  (0) 2012.05.31
cachegrind in valgrind  (5) 2012.05.31
WebKit2 Rendering 분석 (only if using Texture Mapper)  (1) 2012.01.28
Trackback 1 and Comment 0

valgrind tool중 cachegrind가 있습니다. 이걸로 WebKit정도로 큰 프로그램도 분석이 잘 됩니다.

단, VM위에서 돌아가는것이기 때문에 실제 하드웨어에서 일어난 것을 기록하는 것이 아닙니다.


luxtella@luxtella-T5500:bin(qt4.8.1)> valgrind --tool=cachegrind ./QtTestBrowser
==32017== Cachegrind, a cache and branch-prediction profiler
==32017== Copyright (C) 2002-2011, and GNU GPL'd, by Nicholas Nethercote et al.
==32017== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==32017== Command: ./QtTestBrowser
==32017== 
--32017-- warning: L3 cache found, using its data for the LL simulation.
--32017-- warning: pretending that LL cache has associativity 24 instead of actual 16
ASSERTION FAILED: !callLinkInfo->isLinked()
/media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/jit/JIT.cpp(782) : static void JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::AbstractMacroAssembler<JSC::X86Assembler>::CodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind)
1   0x7f30c38 /media/WDDisk/workspace/WebKit/WebKit/WebKitBuild/qt4.8.1/Debug/lib/libQtWebKit.so.4(_ZN3JSC3JIT7linkForEPNS_10JSFunctionEPNS_9CodeBlockES4_NS_21MacroAssemblerCodePtrEPNS_12CallLinkInfoEPNS_12JSGlobalDataENS_22CodeSpecializationKindE+0x68) [0x7f30c38]
2   0x7f551d8 /media/WDDisk/workspace/WebKit/WebKit/WebKitBuild/qt4.8.1/Debug/lib/libQtWebKit.so.4(_ZN3JSC11lazyLinkForEPNS_9ExecStateENS_22CodeSpecializationKindE+0x20e) [0x7f551d8]
3   0x7f4b824 /media/WDDisk/workspace/WebKit/WebKit/WebKitBuild/qt4.8.1/Debug/lib/libQtWebKit.so.4(cti_vm_lazyLinkCall+0x45) [0x7f4b824]
4   0x7f46c7c /media/WDDisk/workspace/WebKit/WebKit/WebKitBuild/qt4.8.1/Debug/lib/libQtWebKit.so.4(+0x331fc7c) [0x7f46c7c]
5   0x7feffd190 [0x7feffd190]
==32017== 
==32017== Process terminating with default action of signal 11 (SIGSEGV)
==32017==  Access not within mapped region at address 0xBBADBEEF
==32017==    at 0x7F30C42: JSC::JIT::linkFor(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::MacroAssemblerCodePtr, JSC::CallLinkInfo*, JSC::JSGlobalData*, JSC::CodeSpecializationKind) (JIT.cpp:782)
==32017==    by 0x7F551D7: JSC::lazyLinkFor(JSC::ExecState*, JSC::CodeSpecializationKind) (JITStubs.cpp:2250)
==32017==    by 0x7F4B823: cti_vm_lazyLinkCall (JITStubs.cpp:2260)
==32017==    by 0x7F46C7B: JSC::JITThunks::tryCacheGetByID(JSC::ExecState*, JSC::CodeBlock*, JSC::ReturnAddressPtr, JSC::JSValue, JSC::Identifier const&, JSC::PropertySlot const&, JSC::StructureStubInfo*) (JITStubs.cpp:970)
==32017==    by 0x7FEFFD18F: ???
==32017==    by 0x9CB7BFFF: ???
==32017==    by 0x9CA81727: ???
==32017==    by 0x9CB3F63F: ???
==32017==  If you believe this happened as a result of a stack
==32017==  overflow in your program's main thread (unlikely but
==32017==  possible), you can try to increase the size of the
==32017==  main thread stack using the --main-stacksize= flag.
==32017==  The main thread stack size used in this run was 8388608.
==32017== 
==32017== I   refs:      1,420,761,524
==32017== I1  misses:       13,760,687
==32017== LLi misses:          181,905
==32017== I1  miss rate:          0.96%
==32017== LLi miss rate:          0.01%
==32017== 
==32017== D   refs:        691,771,806  (436,040,846 rd   + 255,730,960 wr)
==32017== D1  misses:        7,138,046  (  5,395,096 rd   +   1,742,950 wr)
==32017== LLd misses:        1,162,214  (    585,093 rd   +     577,121 wr)
==32017== D1  miss rate:           1.0% (        1.2%     +         0.6%  )
==32017== LLd miss rate:           0.1% (        0.1%     +         0.2%  )
==32017== 
==32017== LL refs:          20,898,733  ( 19,155,783 rd   +   1,742,950 wr)
==32017== LL misses:         1,344,119  (    766,998 rd   +     577,121 wr)
==32017== LL miss rate:            0.0% (        0.0%     +         0.2%  )


cachegrind를 수행하면 더 자세한 정보를 기록한 cachegrind.out.26778 파일이 생성됩니다.

Instruction은 read만 있습니다. (당연히)
Ir = instruction cache reference count
I1mr = level1  instruction cache reference count
ILmr = last level  instruction cache reference count

Dr = data cache read
Dw = data cache write

적어도 Intel x86-64는 level1 cache가 last level cache에 inclusive하기 때문에 
ILmr이 I1mr을 포함합니다.


근데 WebKit만큼 큰 프로그램은 TLB miss도 성능에 큰 영향을 미칠텐데 TLB cache miss에 대한 simulation도 해주면 좋았을것 같습니다.

TLB entry가 보통 2^6 = 64 입니다.
WebKit binary가 20Mb 정도니깐 2^24 byte입니다.
page 하나가 4kb 이니깐 2^12 byte입니다.

즉 WebKit이 2^12 page entry가 필요하므로 TLB cache miss가 종종 나겠지요.


luxtella@luxtella-T5500:bin(qt4.8.1)> cg_annotate ./cachegrind.out.32017 
--------------------------------------------------------------------------------
I1 cache:         32768 B, 64 B, 4-way associative
D1 cache:         32768 B, 64 B, 8-way associative
LL cache:         12582912 B, 64 B, 24-way associative
Command:          ./QtTestBrowser
Data file:        ./cachegrind.out.32017
Events recorded:  Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw
Events shown:     Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw
Event sort order: Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw
Thresholds:       0.1 100 100 100 100 100 100 100 100
Include dirs:     
User annotated:   
Auto-annotation:  off

--------------------------------------------------------------------------------
           Ir       I1mr    ILmr          Dr      D1mr    DLmr          Dw      D1mw    DLmw 
--------------------------------------------------------------------------------
1,420,761,524 13,760,687 181,905 436,040,846 5,395,096 585,093 255,730,960 1,742,950 577,121  PROGRAM TOTALS

--------------------------------------------------------------------------------
        Ir    I1mr   ILmr         Dr      D1mr    DLmr         Dw    D1mw    DLmw  file:function
--------------------------------------------------------------------------------
99,305,497 643,416 14,169 26,645,393   227,697  18,945 12,672,674  81,293     820  ???:???
39,395,385     292     22 18,698,209       312       0  3,799,845      22       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp:WebCore::PNGImageDecoder::rowAvailable(unsigned char*, unsigned int, int)
32,236,006     661     21  7,518,357     5,497     370  3,390,527      18       0  /build/buildd/fontconfig-2.8.0/src/fcmatch.c:FcCompareValueList
29,100,597 233,020     85  4,532,352    69,642     131  4,167,771 107,962  49,964  /build/buildd/eglibc-2.15/malloc/malloc.c:_int_malloc
29,068,454   7,712     56  9,619,269 1,699,607  30,828  3,915,395   3,719     112  /build/buildd/eglibc-2.15/elf/dl-lookup.c:do_lookup_x
25,269,414      46      5  8,409,415       119       1  7,779,532  58,450       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/image-decoders/ImageDecoder.h:WebCore::ImageFrame::setRGBA(unsigned int*, unsigned int, unsigned int, unsigned int, unsigned int)
24,217,492      21      2  9,314,420         7       0  8,382,978       1       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/image-decoders/ImageDecoder.h:WebCore::ImageFrame::setRGBA(int, int, unsigned int, unsigned int, unsigned int, unsigned int)
24,191,093      22     22  5,247,245   377,503  95,022         95      10       0  /build/buildd/eglibc-2.15/elf/dl-addr.c:_dl_addr
23,840,201     217      8  4,724,137    18,004     413     42,455       0       0  /build/buildd/fontconfig-2.8.0/src/fcmatch.c:FcCompareFamily
21,423,166      22      1  7,451,536        47       0  5,588,652      76       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/image-decoders/ImageDecoder.h:WebCore::ImageFrame::getAddr(int, int)
18,254,671     284     67  4,433,653    16,087       0  2,860,835   1,749     307  /build/buildd/zlib-1.2.3.4.dfsg/inffast.c:inflate_fast
12,440,125     595      2  4,080,881   186,432   5,903          0       0       0  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/../strcmp.S:strcmp
12,349,939 145,145     30  3,455,299    23,569     498  1,558,632   2,406     213  /build/buildd/eglibc-2.15/malloc/malloc.c:_int_free
10,940,480     192      8  4,444,570    15,479       4  1,025,670       0       0  /build/buildd/libx11-1.4.99.1/build/src/../../src/ImUtil.c:_XGetPixel32
10,762,323  45,010      6  3,356,458     7,304       5  1,116,830   2,444      30  /build/buildd/eglibc-2.15/malloc/malloc.c:malloc
10,256,700     202      8  3,760,790         0       0  1,709,450  22,126   9,736  /build/buildd/libx11-1.4.99.1/build/src/../../src/ImUtil.c:_XPutPixel32
 9,886,381     259     21  3,060,251         0       0          0       0       0  /build/buildd/zlib-1.2.3.4.dfsg/adler32.c:adler32
 9,551,725   6,806     47  1,519,957    44,118  23,940    559,056   3,374     116  /build/buildd/eglibc-2.15/elf/dl-lookup.c:_dl_lookup_symbol_x
 9,549,331     935     25  2,203,495       240       4  3,378,699       0       0  /build/buildd/fontconfig-2.8.0/src/fccfg.c:FcConfigCompareValue
 9,314,530      23      2  2,794,359         2       0  2,794,359       1       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/image-decoders/ImageDecoder.cpp:WebCore::ImageFrame::width() const
 8,228,387  26,079      9  2,134,977    10,838     259    352,449       0       0  /build/buildd/eglibc-2.15/nptl/pthread_mutex_lock.c:pthread_mutex_lock
 7,296,126     232      4  1,715,396     2,712     560    435,578       0       0  /build/buildd/fontconfig-2.8.0/src/fcstr.c:FcStrCaseWalkerNext
 6,621,370     322      1  3,783,640        46       0  1,891,820      14       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/graphics/IntSize.h:WebCore::IntSize::width() const
 6,496,521  73,843    236  1,854,774   149,226  17,666  1,256,579 185,256  59,409  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:__memcpy_ssse3_back
 6,125,331  35,798      3  1,758,605       361       0    352,811      23       0  /build/buildd/eglibc-2.15/nptl/pthread_mutex_unlock.c:pthread_mutex_unlock
 6,072,910  20,201     74  2,339,915     6,542     352    759,629     128       0  /media/WDDisk/workspace/WebKit/WebKit/WebKitBuild/qt4.8.1/Debug/Source/WebCore/generated/CSSGrammar.tab.c:cssyyparse(void*)
 6,056,030     573     41  1,881,023   195,246 185,888    847,866 171,460 148,763  /build/buildd/eglibc-2.15/elf/../sysdeps/x86_64/dl-machine.h:_dl_relocate_object
 5,854,840     137      4  1,170,968       113      14    305,042       0       0  /build/buildd/fontconfig-2.8.0/src/fcstr.c:FcStrCaseWalkerNextIgnoreBlanks
 5,577,397       6      0  3,187,084     3,941      10  1,593,542     319       1  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/FractionalLayoutUnit.h:WebCore::FractionalLayoutUnit::rawValue() const
 5,329,790     217      4    862,065         3       0  1,411,620      62       0  /build/buildd/fontconfig-2.8.0/src/fcstr.c:FcStrCmpIgnoreCase
 5,227,238     599      4  1,305,612   174,240     116    748,324     730      14  /build/buildd/eglibc-2.15/elf/dl-misc.c:_dl_name_match_p
 5,221,656      76      8  1,100,160    29,808   1,743    199,824   2,885   2,856  /build/buildd/fontconfig-2.8.0/src/fcmatch.c:FcCompare
 5,130,671   3,264      0  1,578,668         0       0  1,973,335   4,395      16  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/FractionalLayoutUnit.h:WebCore::FractionalLayoutUnit::FractionalLayoutUnit(WebCore::FractionalLayoutUnit const&)
 5,057,900  14,394      1  2,460,600         0       0  1,093,600     196       2  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/StringHasher.h:WTF::StringHasher::addCharactersToHash(unsigned short, unsigned short)
 4,970,592   8,911      2  1,367,156         0       0    932,594       5       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/PassRefPtr.h:void WTF::derefIfNotNull<WTF::StringImpl>(WTF::StringImpl*)
 4,953,676  76,762    109  1,404,573       206      11  1,056,124      41       0  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/parser/Lexer.cpp:JSC::Lexer<unsigned short>::lex(JSC::JSTokenData*, JSC::JSTokenInfo*, unsigned int, bool)
 4,942,112  17,459     62    931,891    10,940     600          0       0       0  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/strcmp-sse42.S:__strcmp_sse42
 4,871,658  52,255     49    190,798     9,917      11  2,308,276 265,583 177,382  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/../memset.S:__GI_memset
 4,838,047  15,513      2  1,399,323     4,621      32          0       0       0  /build/buildd/eglibc-2.15/nptl/pthread_getspecific.c:pthread_getspecific
 4,643,562       1      1    672,980       226       5          0       0       0  ???:__popcountdi2
 4,482,198   3,970      0  2,561,256    27,697     551  1,280,628     214       1  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/RefPtr.h:WTF::RefPtr<WTF::StringImpl>::get() const
 4,411,792     430     10    664,000     1,131      26    155,172       0       0  /build/buildd/fontconfig-2.8.0/src/fcstr.c:FcStrCaseWalkerLong
 4,405,400     227      4    588,248         2       0    588,524       0       0  /build/buildd/fontconfig-2.8.0/src/fccfg.c:FcConfigPromote.isra.1
 4,274,873     168     12  1,367,824    20,670       0    513,027      10       0  /build/buildd/qt4-x11-4.8.1/src/gui/styles/qgtkpainter.cpp:QGtkPainter::renderTheme(unsigned char*, unsigned char*, QRect const&)
 4,252,859   1,899     46  1,277,644    14,008     700     31,779     441       0  /build/buildd/qt4-x11-4.8.1/src/gui/painting/qdrawhelper.cpp:qt_alphargbblit_quint32(QRasterBuffer*, int, int, unsigned int, unsigned int const*, int, int, int, QClipData const*)
 4,244,698     426     27  1,033,169   121,812 108,922     46,190      61       2  /build/buildd/eglibc-2.15/elf/do-rel.h:_dl_relocate_object
 4,179,860   7,684    154  1,227,482        13       0    358,590   9,605     597  /build/buildd/cairo-1.10.2/src/cairo-bentley-ottmann.c:_cairo_bentley_ottmann_tessellate_polygon
 4,138,460     194      7  1,042,760       240       2    684,780       0       0  /build/buildd/libx11-1.4.99.1/build/src/../../src/ImUtil.c:_XSetImage
 4,060,056  14,813      2  1,740,024         1       0  1,450,020     302       9  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/Locker.h:WTF::Locker<WTF::Mutex>::Locker(WTF::Mutex&)
 3,803,836   1,158     73  1,043,574   351,487     132    333,564   2,309      19  /build/buildd/eglibc-2.15/elf/dl-load.c:_dl_map_object
 3,798,528     348      8  1,026,470    22,042       0  1,367,860  22,756   4,302  /build/buildd/gtk+2.0-2.24.10/gdk/gdkpixbuf-drawable.c:rgb888alsb
 3,677,187  81,371    130  1,022,504     1,475       8    547,336     650       2  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/RenderBlockLineLayout.cpp:WebCore::RenderBlock::LineBreaker::nextLineBreak(WebCore::BidiResolver<WebCore::InlineIterator, WebCore::BidiRun>&, WebCore::LineInfo&, std::pair<WebCore::RenderText*, WebCore::LazyLineBreakIterator>&, WebCore::RenderBlock::FloatingObject*, unsigned int)
 3,674,897   2,608    192    709,344     3,171       8    490,927   1,106      85  /build/buildd/zlib-1.2.3.4.dfsg/inflate.c:inflate
 3,669,955     313      4  1,000,492    19,592   4,437     16,880       0       0  /build/buildd/fontconfig-2.8.0/src/fcpat.c:FcValueCanonicalize
 3,480,168  14,110      2  1,160,056         0       0  1,160,056   1,265      21  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/ThreadingPthreads.cpp:WTF::Mutex::lock()
 3,480,108  21,331      3  1,160,036         0       0  1,160,036       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/ThreadingPthreads.cpp:WTF::Mutex::unlock()
 3,439,935  28,848     57    932,996       492       3    505,000     209       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/text/BidiResolver.h:WebCore::BidiResolver<WebCore::InlineIterator, WebCore::BidiRun>::createBidiRunsForLine(WebCore::InlineIterator const&, WebCore::VisualDirectionOverride, bool)
 3,296,540   4,155      0  1,318,616     1,033     122    988,962       5       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/RefPtr.h:WTF::RefPtr<WTF::StringImpl>::~RefPtr()
 3,257,037     706     10    594,033    45,750     743    115,645   1,672      74  /build/buildd/fontconfig-2.8.0/src/fcpat.c:FcStrStaticName
 3,220,326   2,698      2    894,535         0       0    894,535     500       2  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/FractionalLayoutUnit.h:WebCore::FractionalLayoutUnit::isInBounds(int)
 3,182,924      53      6  1,207,316         0       0    658,536   1,676      47  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/assembler/AssemblerBuffer.h:void JSC::AssemblerBuffer::putIntegralUnchecked<signed char>(signed char)
 3,182,778   7,697      0  1,414,568     2,185      86    707,284      54       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/RefPtr.h:WTF::RefPtr<WTF::StringImpl>::operator!() const
 3,131,723   8,077      5    776,379    26,884     304    336,732     438       1  /build/buildd/glib2.0-2.32.1/./glib/ghash.c:g_hash_table_lookup
 3,117,712     381     13     16,374        19       2     16,969   8,849     599  /build/buildd/qt4-x11-4.8.1/src/gui/painting/qdrawhelper_sse2.cpp:qt_memfill32_sse2(unsigned int*, unsigned int, int)
 3,097,248  28,741     15  1,220,128         5       0    375,424      61       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/StackBounds.h:WTF::StackBounds::checkConsistency() const
 3,056,230   8,569      1  1,222,492       858      12    611,246      63       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/RenderObject.h:WebCore::RenderObject::RenderObjectBitfields::isText() const
 3,056,230   4,492      0    916,869         0       0    916,869     105       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/RenderObject.h:WebCore::RenderObject::isText() const
 3,023,606   3,133      6    372,429     2,697     600          0       0       0  /build/buildd/glib2.0-2.32.1/./glib/ghash.c:g_str_hash
 2,943,170   6,430      2    735,690         0       0    919,305       7       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/WTFString.h:WTF::String::length() const
 2,900,000   6,202      1  1,160,000         5       0    870,000       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/Locker.h:WTF::Locker<WTF::Mutex>::~Locker()
 2,739,380      42     14    391,340     1,183       0    587,010     248     248  /build/buildd/qt4-x11-4.8.1/src/corelib/../3rdparty/harfbuzz/src/harfbuzz-gpos.c:Load_ValueRecord
 2,734,000  10,306      2    956,900         0       0    683,500     178       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/StringHasher.h:WTF::StringHasher::addCharacters(unsigned short, unsigned short)
 2,732,049   1,814     47    612,697    19,582     466    252,438      18       0  /build/buildd/fontconfig-2.8.0/src/fccfg.c:FcConfigSubstituteWithPat
 2,705,353      36      0  1,545,916         4       0    772,958       2       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/RefPtr.h:WTF::RefPtr<WTF::StringImpl>::operator->() const
 2,697,198   9,325      4    771,078         3       0    493,836      73       5  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/StringBuilder.h:WTF::StringBuilder::append(unsigned short)
 2,683,780     186      2    590,331     1,299      22          0       0       0  /build/buildd/qt4-x11-4.8.1/src/corelib/tools/qstring.cpp:ucstrncmp(QChar const*, QChar const*, int)
 2,623,185   2,712      2  1,412,462     2,186       0    504,458       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/parser/Lexer.cpp:JSC::Lexer<unsigned short>::shift()
 2,604,520   1,614      2    685,400         0       0    822,480     215       5  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/RefPtr.h:bool WTF::operator==<WTF::StringImpl, WTF::StringImpl>(WTF::RefPtr<WTF::StringImpl> const&, WTF::RefPtr<WTF::StringImpl> const&)
 2,586,929      49      5    699,170         0       0    419,502       0       0  ???:FT_Get_Next_Char
 2,579,922  14,551      3    745,759        11       1    379,713     354       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/StringHasher.h:unsigned int WTF::StringHasher::computeHash<unsigned short, &(WTF::StringHasher::defaultConverter(unsigned short))>(unsigned short const*, unsigned int)
 2,519,912     296      6    440,957    24,037       0          0       0       0  /build/buildd/fontconfig-2.8.0/src/fcpat.c:FcHashOwnsName
 2,495,628   4,145      0    831,876         0       0    831,876     134       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/WTFString.h:WTF::String::impl() const
 2,491,452   8,795      2    692,070         0       0    415,242       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/RenderText.h:WebCore::toRenderText(WebCore::RenderObject*)
 2,487,780     226      6    314,734       819      24          0       0       0  /build/buildd/fontconfig-2.8.0/src/fclang.c:FcLangCompare
 2,453,782  36,924      6    521,586    11,932     321         12       0       0  /build/buildd/eglibc-2.15/malloc/malloc.c:free
 2,446,192   9,835      0  1,048,368       108       3          0       0       0  /build/buildd/eglibc-2.15/nptl/forward.c:pthread_mutex_unlock
 2,443,637  17,278      1  1,047,273       755       2          0       0       0  /build/buildd/eglibc-2.15/nptl/forward.c:pthread_mutex_lock
 2,432,329   8,338      3    827,603       682      16    413,916       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/InlineIterator.h:WebCore::InlineIterator::current() const
 2,397,168   5,360      1    799,056         0       0    799,056      76       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/AtomicString.h:WTF::AtomicString::impl() const
 2,346,390   1,410      3    938,556         0       0    312,852      29       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/StackBounds.h:WTF::StackBounds::isGrowingDownward() const
 2,344,017      16      8    705,969    10,641   2,372     11,852       0       0  /build/buildd/fontconfig-2.8.0/src/fccharset.c:FcCharSetIsSubset
 2,327,184      46      4    905,016     8,692   8,692    129,288       0       0  ???:FT_Stream_GetULong
 2,325,297     661      1  1,073,214         0       0    357,738     801     105  ???:WebCore::FractionalLayoutUnit::FractionalLayoutUnit(int)
 2,313,960  21,806      1  1,735,470     2,150      63          0       0       0  ???:WTF::OwnPtr<WTF::Mutex>::operator*() const
 2,309,499  10,096      2    684,296         1       0    769,833      69       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/FractionalLayoutUnit.h:WebCore::operator+(WebCore::FractionalLayoutUnit const&, WebCore::FractionalLayoutUnit const&)
 2,289,882       0      0  1,144,941         7       0    490,689      33       1  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/assembler/AssemblerBuffer.h:JSC::AssemblerBuffer::isAvailable(int)
 2,264,510     242      4          0         0       0    107,756       0       0  /build/buildd/qt4-x11-4.8.1/src/gui/../../include/QtGui/../../src/gui/painting/qrgb.h:qt_alphargbblit_quint32(QRasterBuffer*, int, int, unsigned int, unsigned int const*, int, int, int, QClipData const*)
 2,206,867   4,477      5    832,780         2       0    582,946      13       0  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/parser/Parser.h:JSC::Parser<JSC::Lexer<unsigned short> >::next(unsigned int)
 2,195,470     196      6    212,275         0       0    543,360      13       0  /build/buildd/fontconfig-2.8.0/src/fcstr.c:FcStrCmpIgnoreBlanksAndCase
 2,176,918   6,719    146    401,277     7,314   1,718          0       0       0  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/../strcmp.S:__GI_strcmp
 2,151,452      67     10    574,966        11       0    191,374      14       0  /build/buildd/qt4-x11-4.8.1/src/gui/painting/qdrawhelper.cpp:void blend_tiled_generic<(SpanMethod)0>(int, QT_FT_Span_ const*, void*)
 2,149,490   1,599      0    644,847         0       0    644,847     381       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/RenderObject.h:WebCore::RenderObject::style() const
 2,129,546  17,373     11    667,128     7,989      13    288,732     871      11  /build/buildd/qt4-x11-4.8.1/src/gui/text/qfontengine_ft.cpp:QFontEngineFT::stringToCMap(QChar const*, int, QGlyphLayout*, int*, QFlags<QTextEngine::ShaperFlag>) const
 2,118,450   4,132      6    508,428         0       0    423,690       4       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/Vector.h:WTF::Vector<JSC::Scope, 10ul>::at(unsigned long)
 2,112,657     376     11    415,925     1,002      72    152,263      38       0  /build/buildd/fontconfig-2.8.0/src/fclang.c:FcLangSetIndex
 2,075,696   6,936      0  1,186,112     9,422     570    593,056      30       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/StringImpl.h:WTF::StringImpl::length() const
 1,927,626   5,811      3    729,372         0       0    364,686       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/InlineIterator.h:WebCore::InlineIterator::fastIncrementInTextNode()
 1,916,882  24,430      3    697,048         0       0    697,048       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/StdLibExtras.h:operator new(unsigned long, NotNullTag, void*)
 1,909,353   4,838     14    922,321         1       0    350,569       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/text/SegmentedString.h:WebCore::SegmentedString::advance(int&)
 1,906,224   2,433      6    466,798    14,078     126          0       0       0  /build/buildd/glib2.0-2.32.1/./gobject/gtype.c:g_type_check_instance_is_a
 1,901,300  13,994     14    533,794    51,056     501    339,628     538      15  /build/buildd/eglibc-2.15/malloc/malloc.c:malloc_consolidate.part.3
 1,898,537   4,980      1    499,615         0       0    599,538      58       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/AtomicString.h:WTF::operator==(WTF::AtomicString const&, WTF::AtomicString const&)
 1,888,026     900      3     72,798         0       0          0       0       0  ???:FT_MulFix
 1,880,236     695      6    822,601       183       1    470,060     134       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/ThreadSpecific.h:WTF::ThreadSpecific<WebCore::ThreadGlobalData>::get()
 1,880,231     692      3    940,113       184       4    470,059      71       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/ThreadGlobalData.h:WebCore::threadGlobalData()
 1,868,196   3,801      2    339,672         0       0    509,508       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/HashTraits.h:bool WTF::HashTraitsEmptyValueChecker<WTF::HashTraits<WTF::RefPtr<WTF::StringImpl> >, false>::isEmptyValue<WTF::RefPtr<WTF::StringImpl> >(WTF::RefPtr<WTF::StringImpl> const&)
 1,859,212      62      2     12,300         0       0  1,834,612 454,415  61,383  /usr/lib/gcc/x86_64-linux-gnu/4.6/include/emmintrin.h:qt_memfill32_sse2(unsigned int*, unsigned int, int)
 1,848,252   1,877      3    218,354     1,852      83          0       0       0  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/strchr.S:__strchr_sse42
 1,831,618     133      0    608,810         0       0    183,210       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/HashTable.h:WTF::HashTable<WTF::RefPtr<WTF::StringImpl>, WTF::RefPtr<WTF::StringImpl>, WTF::IdentityExtractor, JSC::IdentifierRepHash, WTF::HashTraits<WTF::RefPtr<WTF::StringImpl> >, WTF::HashTraits<WTF::RefPtr<WTF::StringImpl> > >::deallocateTable(WTF::RefPtr<WTF::S
 1,823,632     230      0    911,816       180       1    455,908     435       1  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/Length.h:WebCore::Length::type() const
 1,821,782   3,641     14    671,239    42,209   8,874    232,198   4,551      82  /build/buildd/eglibc-2.15/elf/dl-lookup.c:check_match.11236
 1,720,305   8,701      3    669,363     1,738       8    381,853     385       8  /build/buildd/qt4-x11-4.8.1/src/corelib/thread/qmutex.cpp:QMutex::lock()
 1,707,679  34,653     12    359,460     3,614      11    168,452     298       1  /build/buildd/eglibc-2.15/malloc/malloc.c:realloc
 1,688,280       8      6    731,588         0       0    309,518   6,979   5,878  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/text/TextCodecASCIIFastPath.h:WebCore::UCharByteFiller<8ul>::copy(unsigned short*, unsigned char const*)
 1,673,270   5,837      2    501,981         0       0    501,981       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/rendering/RenderText.h:WebCore::RenderText::textLength() const
 1,671,846  34,362     24    593,322         0       0    314,869      22       0  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/parser/Lexer.cpp:JSC::JSTokenType JSC::Lexer<unsigned short>::parseIdentifier<true>(JSC::JSTokenData*, unsigned int, bool)
 1,658,244   1,798      2    631,712         0       0    473,784      65       0  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/parser/Parser.h:JSC::Parser<JSC::Lexer<unsigned short> >::currentScope()
 1,640,430   2,023      3    447,390         5       0    397,680     180       5  ???:FT_Stream_EnterFrame
 1,603,224   3,239      3    572,580     2,132     809    458,064       1       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/RefPtr.h:WTF::RefPtr<WTF::StringImpl>::isHashTableDeletedValue() const
 1,598,464   7,205      3    456,704         0       0    513,792       2       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/platform/FractionalLayoutUnit.h:WebCore::operator-(WebCore::FractionalLayoutUnit const&, WebCore::FractionalLayoutUnit const&)
 1,591,386       3      3    243,664         1       0     41,578       0       0  /build/buildd/libx11-1.4.99.1/build/src/xlibi18n/../../../src/xlibi18n/lcFile.c:parse_line
 1,586,314  17,286    333    454,118     7,766     406    340,537  52,790   4,888  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:__memmove_ssse3_back
 1,584,396       4      1    413,754    10,462       0          0       0       0  /build/buildd/fontconfig-2.8.0/src/fcmatch.c:FcSortCompare
 1,580,200     890      2    474,060         0       0    474,060      51       0  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/runtime/JSCell.h:JSC::JSCell::unvalidatedStructure()
 1,572,672  10,873     20    206,368     5,058     683          0       0       0  /build/buildd/eglibc-2.15/string/../sysdeps/x86_64/multiarch/strlen-sse2-pminub.S:__strlen_sse2_pminub
 1,572,408     639      7    673,866     1,172       0    187,851       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/css/CSSParser.cpp:WebCore::CSSParser::parseURI(unsigned short*&, unsigned short*&)
 1,572,186   3,376      1    898,392     1,569       0    449,196     354       1  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/RefPtr.h:WTF::RefPtr<WebCore::RenderStyle>::get() const
 1,570,820     841      1    628,328     2,067      72    314,164      42       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/StringImpl.h:WTF::StringImpl::is8Bit() const
 1,554,839   2,092      0    706,745     1,842      25    424,047      59       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/dom/Node.h:WebCore::Node::getFlag(WebCore::Node::NodeFlags) const
 1,534,522   2,706      4    348,755         0       0    627,759      21       0  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/parser/Parser.h:JSC::Parser<JSC::Lexer<unsigned short> >::strictMode()
 1,527,697     486      4    587,573         1       0    470,061     118       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/ThreadSpecific.h:WTF::ThreadSpecific<WebCore::ThreadGlobalData>::operator WebCore::ThreadGlobalData*()
 1,489,702   1,722     98    291,530    19,006     155     44,983   1,321      75  /build/buildd/eglibc-2.15/elf/dl-deps.c:_dl_map_object_deps
 1,489,506  24,466     18    684,832         0       0    278,398       0       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/HashTable.h:void WTF::removeIterator<WTF::RefPtr<WTF::StringImpl>, WTF::RefPtr<WTF::StringImpl>, WTF::IdentityExtractor, JSC::IdentifierRepHash, WTF::HashTraits<WTF::RefPtr<WTF::StringImpl> >, WTF::HashTraits<WTF::RefPtr<WTF::StringImpl> > >(WTF::HashTableConstIterat
 1,429,312     435      8    255,562       594      23    232,586      26       1  /build/buildd/glib2.0-2.32.1/./glib/gvarianttype.c:g_variant_type_string_scan
 1,427,298   3,020      8     73,905         0       0     49,270       0       0  ???:FT_MulDiv
 1,426,555      26      3    438,940         0       0    438,940      14       3  /media/WDDisk/workspace/WebKit/WebKit/Source/JavaScriptCore/assembler/AssemblerBuffer.h:JSC::AssemblerBuffer::putByteUnchecked(signed char)
 1,425,578  50,722    129    552,218       598      20    230,449      30       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WebCore/css/CSSParser.cpp:WebCore::CSSParser::lex(void*)
 1,422,494     238      4    182,253    10,456   1,621          0       0       0  /build/buildd/fontconfig-2.8.0/src/fcpat.c:FcPatternObjectFindElt
 1,421,316   8,953      2    355,328         0       0    444,157      73       0  /media/WDDisk/workspace/WebKit/WebKit/Source/WTF/wtf/text/WTFString.h:WTF::String::characters() const



'Technology > Webkit' 카테고리의 다른 글

WebKit Filters Animation Internal  (1) 2012.10.20
WebKit2 Injected Bundle  (1) 2012.10.15
oprofile  (2) 2012.06.02
massif 메모리 사용량을 측정하자  (0) 2012.05.31
cachegrind in valgrind  (5) 2012.05.31
WebKit2 Rendering 분석 (only if using Texture Mapper)  (1) 2012.01.28
Trackback 4 and Comment 5

오랫만에 크롬을 빌드했다.


http://code.google.com/p/chromium/wiki/NinjaBuild

ninja를 쓰니 굉장히 빠르게 빌드가 된다.


예전에 Makefile을 쓸때는 1시간쯤 걸렸던것 같은데, ninja로 20분만에 빌드를 했다.


몇가지를 수정해야 Ubuntu 12.04에서 빌드가 된다.



'Technology > Working Note' 카테고리의 다른 글

webkit의 scale  (1) 2013.02.20
qt의 triple buffering  (2) 2012.12.13
Chromium build  (2) 2012.05.25
Ubuntu 11.10 reinstall  (1) 2011.11.29
Qt Build  (2) 2011.09.23
Regular Expression  (1) 2011.06.06
Trackback 0 and Comment 2
prev Prev : [1] : [2] : [3] : [4] : [5] : [6] : [7] : [···] : [24] : Next next