Lines Matching +full:- +full:e
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 …-- Flame graph stack visualization. See https://github.com/brendangregg/FlameGraph for latest vers…
5 <!-- NOTES: -->
8 <stop stop-color="#eeeeee" offset="5%" />
9 <stop stop-color="#eeeeb0" offset="95%" />
13 text { font-family:Verdana; font-size:12px; fill:rgb(0,0,0); }
16 #subtitle { text-anchor:middle; font-color:rgb(160,160,160); }
17 #title { text-anchor:middle; font-size:17px}
19 #frames > *:hover { stroke:black; stroke-width:0.5; cursor:pointer; }
45 window.addEventListener("click", function(e) {
46 var target = find_group(e.target);
49 if (e.ctrlKey === false) return;
50 e.preventDefault();
73 else if (e.target.id == "unzoom") clearzoom();
74 else if (e.target.id == "search") search_prompt();
75 else if (e.target.id == "ignorecase") toggle_ignorecase();
78 // mouse-over for info
80 window.addEventListener("mouseover", function(e) {
81 var target = find_group(e.target);
86 window.addEventListener("mouseout", function(e) {
87 var target = find_group(e.target);
91 // ctrl-F for search
92 // ctrl-I to toggle case-sensitive search
93 window.addEventListener("keydown",function (e) {
94 if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) {
95 e.preventDefault();
98 else if (e.ctrlKey && e.keyCode === 73) {
99 e.preventDefault();
120 if (uri.slice(-1) == "&")
121 uri = uri.substring(0, uri.length - 1);
136 function orig_save(e, attr, val) {
137 if (e.attributes["_orig_" + attr] != undefined) return;
138 if (e.attributes[attr] == undefined) return;
139 if (val == undefined) val = e.attributes[attr].value;
140 e.setAttribute("_orig_" + attr, val);
142 function orig_load(e, attr) {
143 if (e.attributes["_orig_"+attr] == undefined) return;
144 e.attributes[attr].value = e.attributes["_orig_" + attr].value;
145 e.removeAttribute("_orig_"+attr);
147 function g_to_text(e) {
148 var text = find_child(e, "title").firstChild.nodeValue;
151 function g_to_func(e) {
152 var func = g_to_text(e);
157 function update_text(e) {
158 var r = find_child(e, "rect");
159 var t = find_child(e, "text");
160 var w = parseFloat(r.attributes.width.value) -3;
161 var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,"");
179 for (var x = start; x > 0; x = x-2) {
189 function zoom_reset(e) {
190 if (e.attributes != undefined) {
191 orig_load(e, "x");
192 orig_load(e, "width");
194 if (e.childNodes == undefined) return;
195 for (var i = 0, c = e.childNodes; i < c.length; i++) {
199 function zoom_child(e, x, ratio) {
200 if (e.attributes != undefined) {
201 if (e.attributes.x != undefined) {
202 orig_save(e, "x");
203 e.attributes.x.value = (parseFloat(e.attributes.x.value) - x - 10) * ratio + 10;
204 if (e.tagName == "text")
205 e.attributes.x.value = find_child(e.parentNode, "rect[x]").attributes.x.value + 3;
207 if (e.attributes.width != undefined) {
208 orig_save(e, "width");
209 e.attributes.width.value = parseFloat(e.attributes.width.value) * ratio;
213 if (e.childNodes == undefined) return;
214 for (var i = 0, c = e.childNodes; i < c.length; i++) {
215 zoom_child(c[i], x - 10, ratio);
218 function zoom_parent(e) {
219 if (e.attributes) {
220 if (e.attributes.x != undefined) {
221 orig_save(e, "x");
222 e.attributes.x.value = 10;
224 if (e.attributes.width != undefined) {
225 orig_save(e, "width");
226 e.attributes.width.value = parseInt(svg.width.baseVal.value) - (10 * 2);
229 if (e.childNodes == undefined) return;
230 for (var i = 0, c = e.childNodes; i < c.length; i++) {
240 var ratio = (svg.width.baseVal.value - 2 * 10) / width;
249 var e = el[i];
250 var a = find_child(e, "rect").attributes;
263 e.classList.add("parent");
264 zoom_parent(e);
265 update_text(e);
269 e.classList.add("hide");
275 e.classList.add("hide");
278 zoom_child(e, xmin, ratio);
279 update_text(e);
331 + "\nPress Ctrl-i to toggle case sensitivity", "");
351 var e = el[i];
352 var func = g_to_func(e);
353 var rect = find_child(e, "rect");
391 var lastx = -1;
401 return a - b;
403 // Step through frames saving only the biggest bottom-up frames
410 if (x >= lastx + lastw - fudge) {