ex1.svg (4396B)
1 <?xml version="1.0" standalone="no"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 <svg version="1.1" width="1200" height="214" onload="init(evt)" viewBox="0 0 1200 214" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 4 <!-- Flame graph stack visualization. See https://github.com/brendangregg/FlameGraph for latest version, and http://www.brendangregg.com/flamegraphs.html for examples. --> 5 <!-- NOTES: --> 6 <defs> 7 <linearGradient id="background" y1="0" y2="1" x1="0" x2="0" > 8 <stop stop-color="#eeeeee" offset="5%" /> 9 <stop stop-color="#eeeeb0" offset="95%" /> 10 </linearGradient> 11 </defs> 12 <style type="text/css"> 13 text { font-family:Verdana; font-size:12px; fill:rgb(0,0,0); } 14 #search, #ignorecase { opacity:0.1; cursor:pointer; } 15 #search:hover, #search.show, #ignorecase:hover, #ignorecase.show { opacity:1; } 16 #subtitle { text-anchor:middle; font-color:rgb(160,160,160); } 17 #title { text-anchor:middle; font-size:17px} 18 #unzoom { cursor:pointer; } 19 #frames > *:hover { stroke:black; stroke-width:0.5; cursor:pointer; } 20 .hide { display:none; } 21 .parent { opacity:0.5; } 22 </style> 23 <rect x="0.0" y="0" width="1200.0" height="214.0" fill="url(#background)" /> 24 <text id="title" x="600.00" y="24" >Flame Graph</text> 25 <text id="details" x="10.00" y="197" > </text> 26 <text id="unzoom" x="10.00" y="24" class="hide">Reset Zoom</text> 27 <text id="search" x="1090.00" y="24" >Search</text> 28 <text id="ignorecase" x="1174.00" y="24" >ic</text> 29 <text id="matched" x="1090.00" y="197" > </text> 30 <g id="frames"> 31 <g > 32 <title>square (13,514,719,173 samples, 10.04%)</title><rect x="720.1" y="53" width="118.4" height="15.0" fill="rgb(219,66,15)" rx="2" ry="2" /> 33 <text x="723.10" y="63.5" >square</text> 34 </g> 35 <g > 36 <title>squareHelper (6,814,422,153 samples, 5.06%)</title><rect x="1130.3" y="69" width="59.7" height="15.0" fill="rgb(241,169,40)" rx="2" ry="2" /> 37 <text x="1133.28" y="79.5" >square..</text> 38 </g> 39 <g > 40 <title>[libc.so.6] (134,651,191,451 samples, 100.00%)</title><rect x="10.0" y="85" width="1180.0" height="15.0" fill="rgb(223,84,20)" rx="2" ry="2" /> 41 <text x="13.01" y="95.5" >[libc.so.6]</text> 42 </g> 43 <g > 44 <title>all (134,652,798,251 samples, 100%)</title><rect x="10.0" y="165" width="1180.0" height="15.0" fill="rgb(213,39,9)" rx="2" ry="2" /> 45 <text x="13.00" y="175.5" ></text> 46 </g> 47 <g > 48 <title>squareHelper (26,624,799,803 samples, 19.77%)</title><rect x="838.5" y="53" width="233.4" height="15.0" fill="rgb(241,169,40)" rx="2" ry="2" /> 49 <text x="841.54" y="63.5" >squareHelper</text> 50 </g> 51 <g > 52 <title>factorial (26,230,781,959 samples, 19.48%)</title><rect x="490.2" y="53" width="229.9" height="15.0" fill="rgb(233,129,30)" rx="2" ry="2" /> 53 <text x="493.23" y="63.5" >factorial</text> 54 </g> 55 <g > 56 <title>call_init (134,651,191,451 samples, 100.00%)</title><rect x="10.0" y="101" width="1180.0" height="15.0" fill="rgb(221,77,18)" rx="2" ry="2" /> 57 <text x="13.01" y="111.5" >call_init</text> 58 </g> 59 <g > 60 <title>square (6,684,828,895 samples, 4.96%)</title><rect x="1013.3" y="37" width="58.6" height="15.0" fill="rgb(219,66,15)" rx="2" ry="2" /> 61 <text x="1016.28" y="47.5" >square</text> 62 </g> 63 <g > 64 <title>_start (134,651,191,451 samples, 100.00%)</title><rect x="10.0" y="133" width="1180.0" height="15.0" fill="rgb(245,185,44)" rx="2" ry="2" /> 65 <text x="13.01" y="143.5" >_start</text> 66 </g> 67 <g > 68 <title>__libc_start_main (134,651,191,451 samples, 100.00%)</title><rect x="10.0" y="117" width="1180.0" height="15.0" fill="rgb(236,142,34)" rx="2" ry="2" /> 69 <text x="13.01" y="127.5" >__libc_start_main</text> 70 </g> 71 <g > 72 <title>factorial (1,539,933,354 samples, 1.14%)</title><rect x="10.0" y="69" width="13.5" height="15.0" fill="rgb(233,129,30)" rx="2" ry="2" /> 73 <text x="13.01" y="79.5" ></text> 74 </g> 75 <g > 76 <title>square (6,667,283,715 samples, 4.95%)</title><rect x="1071.9" y="69" width="58.4" height="15.0" fill="rgb(219,66,15)" rx="2" ry="2" /> 77 <text x="1074.86" y="79.5" >square</text> 78 </g> 79 <g > 80 <title>ex1 (134,652,798,251 samples, 100.00%)</title><rect x="10.0" y="149" width="1180.0" height="15.0" fill="rgb(219,66,15)" rx="2" ry="2" /> 81 <text x="13.00" y="159.5" >ex1</text> 82 </g> 83 <g > 84 <title>main (119,629,552,229 samples, 88.84%)</title><rect x="23.5" y="69" width="1048.4" height="15.0" fill="rgb(243,179,42)" rx="2" ry="2" /> 85 <text x="26.51" y="79.5" >main</text> 86 </g> 87 </g> 88 </svg>