Skip to content

Instantly share code, notes, and snippets.

@mmarchini
Created September 26, 2020 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmarchini/5da624b8c62fe1ecfe4944726a3cf4c6 to your computer and use it in GitHub Desktop.
Save mmarchini/5da624b8c62fe1ecfe4944726a3cf4c6 to your computer and use it in GitHub Desktop.
const total = 200000
const batch = 32768
const tokens1 = [], tokens2 = []
const one = () => {
tokens1.push(0);
if (tokens1.length > 0 && tokens2.length > 0) {
tokens1.splice(0, 1);
tokens2.splice(0, 1);
}
}
const two = () => {
tokens2.push(0);
if (tokens1.length > 0 && tokens2.length > 0) {
tokens1.splice(0, 1);
tokens2.splice(0, 1);
}
}
console.log(process.version)
console.time()
for (let t = 0; t < total; t += batch) {
for (let i = 0; i < batch; i++) one()
for (let i = 0; i < batch; i++) two()
}
console.timeEnd()
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" width="1200" height="1542" onload="init(evt)" viewBox="0 0 1200 1542" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Flame graph stack visualization. See https://github.com/brendangregg/FlameGraph for latest version, and http://www.brendangregg.com/flamegraphs.html for examples. -->
<!-- NOTES: -->
<defs>
<linearGradient id="background" y1="0" y2="1" x1="0" x2="0" >
<stop stop-color="#eeeeee" offset="5%" />
<stop stop-color="#eeeeb0" offset="95%" />
</linearGradient>
</defs>
<style type="text/css">
text { font-family:Verdana; font-size:12px; fill:rgb(0,0,0); }
#search, #ignorecase { opacity:0.1; cursor:pointer; }
#search:hover, #search.show, #ignorecase:hover, #ignorecase.show { opacity:1; }
#subtitle { text-anchor:middle; font-color:rgb(160,160,160); }
#title { text-anchor:middle; font-size:17px}
#unzoom { cursor:pointer; }
#frames > *:hover { stroke:black; stroke-width:0.5; cursor:pointer; }
.hide { display:none; }
.parent { opacity:0.5; }
</style>
<script type="text/ecmascript">
<![CDATA[
"use strict";
var details, searchbtn, unzoombtn, matchedtxt, svg, searching, currentSearchTerm, ignorecase, ignorecaseBtn;
function init(evt) {
details = document.getElementById("details").firstChild;
searchbtn = document.getElementById("search");
ignorecaseBtn = document.getElementById("ignorecase");
unzoombtn = document.getElementById("unzoom");
matchedtxt = document.getElementById("matched");
svg = document.getElementsByTagName("svg")[0];
searching = 0;
currentSearchTerm = null;
}
window.addEventListener("click", function(e) {
var target = find_group(e.target);
if (target) {
if (target.nodeName == "a") {
if (e.ctrlKey === false) return;
e.preventDefault();
}
if (target.classList.contains("parent")) unzoom();
zoom(target);
}
else if (e.target.id == "unzoom") unzoom();
else if (e.target.id == "search") search_prompt();
else if (e.target.id == "ignorecase") toggle_ignorecase();
}, false)
// mouse-over for info
// show
window.addEventListener("mouseover", function(e) {
var target = find_group(e.target);
if (target) details.nodeValue = "Function: " + g_to_text(target);
}, false)
// clear
window.addEventListener("mouseout", function(e) {
var target = find_group(e.target);
if (target) details.nodeValue = ' ';
}, false)
// ctrl-F for search
window.addEventListener("keydown",function (e) {
if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) {
e.preventDefault();
search_prompt();
}
}, false)
// ctrl-I to toggle case-sensitive search
window.addEventListener("keydown",function (e) {
if (e.ctrlKey && e.keyCode === 73) {
e.preventDefault();
toggle_ignorecase();
}
}, false)
// functions
function find_child(node, selector) {
var children = node.querySelectorAll(selector);
if (children.length) return children[0];
return;
}
function find_group(node) {
var parent = node.parentElement;
if (!parent) return;
if (parent.id == "frames") return node;
return find_group(parent);
}
function orig_save(e, attr, val) {
if (e.attributes["_orig_" + attr] != undefined) return;
if (e.attributes[attr] == undefined) return;
if (val == undefined) val = e.attributes[attr].value;
e.setAttribute("_orig_" + attr, val);
}
function orig_load(e, attr) {
if (e.attributes["_orig_"+attr] == undefined) return;
e.attributes[attr].value = e.attributes["_orig_" + attr].value;
e.removeAttribute("_orig_"+attr);
}
function g_to_text(e) {
var text = find_child(e, "title").firstChild.nodeValue;
return (text)
}
function g_to_func(e) {
var func = g_to_text(e);
// if there's any manipulation we want to do to the function
// name before it's searched, do it here before returning.
return (func);
}
function update_text(e) {
var r = find_child(e, "rect");
var t = find_child(e, "text");
var w = parseFloat(r.attributes.width.value) -3;
var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,"");
t.attributes.x.value = parseFloat(r.attributes.x.value) + 3;
// Smaller than this size won't fit anything
if (w < 2 * 12 * 0.59) {
t.textContent = "";
return;
}
t.textContent = txt;
// Fit in full text width
if (/^ *$/.test(txt) || t.getSubStringLength(0, txt.length) < w)
return;
for (var x = txt.length - 2; x > 0; x--) {
if (t.getSubStringLength(0, x + 2) <= w) {
t.textContent = txt.substring(0, x) + "..";
return;
}
}
t.textContent = "";
}
// zoom
function zoom_reset(e) {
if (e.attributes != undefined) {
orig_load(e, "x");
orig_load(e, "width");
}
if (e.childNodes == undefined) return;
for (var i = 0, c = e.childNodes; i < c.length; i++) {
zoom_reset(c[i]);
}
}
function zoom_child(e, x, ratio) {
if (e.attributes != undefined) {
if (e.attributes.x != undefined) {
orig_save(e, "x");
e.attributes.x.value = (parseFloat(e.attributes.x.value) - x - 10) * ratio + 10;
if (e.tagName == "text")
e.attributes.x.value = find_child(e.parentNode, "rect[x]").attributes.x.value + 3;
}
if (e.attributes.width != undefined) {
orig_save(e, "width");
e.attributes.width.value = parseFloat(e.attributes.width.value) * ratio;
}
}
if (e.childNodes == undefined) return;
for (var i = 0, c = e.childNodes; i < c.length; i++) {
zoom_child(c[i], x - 10, ratio);
}
}
function zoom_parent(e) {
if (e.attributes) {
if (e.attributes.x != undefined) {
orig_save(e, "x");
e.attributes.x.value = 10;
}
if (e.attributes.width != undefined) {
orig_save(e, "width");
e.attributes.width.value = parseInt(svg.width.baseVal.value) - (10 * 2);
}
}
if (e.childNodes == undefined) return;
for (var i = 0, c = e.childNodes; i < c.length; i++) {
zoom_parent(c[i]);
}
}
function zoom(node) {
var attr = find_child(node, "rect").attributes;
var width = parseFloat(attr.width.value);
var xmin = parseFloat(attr.x.value);
var xmax = parseFloat(xmin + width);
var ymin = parseFloat(attr.y.value);
var ratio = (svg.width.baseVal.value - 2 * 10) / width;
// XXX: Workaround for JavaScript float issues (fix me)
var fudge = 0.0001;
unzoombtn.classList.remove("hide");
var el = document.getElementById("frames").children;
for (var i = 0; i < el.length; i++) {
var e = el[i];
var a = find_child(e, "rect").attributes;
var ex = parseFloat(a.x.value);
var ew = parseFloat(a.width.value);
var upstack;
// Is it an ancestor
if (0 == 0) {
upstack = parseFloat(a.y.value) > ymin;
} else {
upstack = parseFloat(a.y.value) < ymin;
}
if (upstack) {
// Direct ancestor
if (ex <= xmin && (ex+ew+fudge) >= xmax) {
e.classList.add("parent");
zoom_parent(e);
update_text(e);
}
// not in current path
else
e.classList.add("hide");
}
// Children maybe
else {
// no common path
if (ex < xmin || ex + fudge >= xmax) {
e.classList.add("hide");
}
else {
zoom_child(e, xmin, ratio);
update_text(e);
}
}
}
search();
}
function unzoom() {
unzoombtn.classList.add("hide");
var el = document.getElementById("frames").children;
for(var i = 0; i < el.length; i++) {
el[i].classList.remove("parent");
el[i].classList.remove("hide");
zoom_reset(el[i]);
update_text(el[i]);
}
search();
}
// search
function toggle_ignorecase() {
ignorecase = !ignorecase;
if (ignorecase) {
ignorecaseBtn.classList.add("show");
} else {
ignorecaseBtn.classList.remove("show");
}
reset_search();
search();
}
function reset_search() {
var el = document.querySelectorAll("#frames rect");
for (var i = 0; i < el.length; i++) {
orig_load(el[i], "fill")
}
}
function search_prompt() {
if (!searching) {
var term = prompt("Enter a search term (regexp " +
"allowed, eg: ^ext4_)"
+ (ignorecase ? ", ignoring case" : "")
+ "\nPress Ctrl-i to toggle case sensitivity", "");
if (term != null) {
currentSearchTerm = term;
search();
}
} else {
reset_search();
searching = 0;
currentSearchTerm = null;
searchbtn.classList.remove("show");
searchbtn.firstChild.nodeValue = "Search"
matchedtxt.classList.add("hide");
matchedtxt.firstChild.nodeValue = ""
}
}
function search(term) {
if (currentSearchTerm === null) return;
var term = currentSearchTerm;
var re = new RegExp(term, ignorecase ? 'i' : '');
var el = document.getElementById("frames").children;
var matches = new Object();
var maxwidth = 0;
for (var i = 0; i < el.length; i++) {
var e = el[i];
var func = g_to_func(e);
var rect = find_child(e, "rect");
if (func == null || rect == null)
continue;
// Save max width. Only works as we have a root frame
var w = parseFloat(rect.attributes.width.value);
if (w > maxwidth)
maxwidth = w;
if (func.match(re)) {
// highlight
var x = parseFloat(rect.attributes.x.value);
orig_save(rect, "fill");
rect.attributes.fill.value = "rgb(230,0,230)";
// remember matches
if (matches[x] == undefined) {
matches[x] = w;
} else {
if (w > matches[x]) {
// overwrite with parent
matches[x] = w;
}
}
searching = 1;
}
}
if (!searching)
return;
searchbtn.classList.add("show");
searchbtn.firstChild.nodeValue = "Reset Search";
// calculate percent matched, excluding vertical overlap
var count = 0;
var lastx = -1;
var lastw = 0;
var keys = Array();
for (k in matches) {
if (matches.hasOwnProperty(k))
keys.push(k);
}
// sort the matched frames by their x location
// ascending, then width descending
keys.sort(function(a, b){
return a - b;
});
// Step through frames saving only the biggest bottom-up frames
// thanks to the sort order. This relies on the tree property
// where children are always smaller than their parents.
var fudge = 0.0001; // JavaScript floating point
for (var k in keys) {
var x = parseFloat(keys[k]);
var w = matches[keys[k]];
if (x >= lastx + lastw - fudge) {
count += w;
lastx = x;
lastw = w;
}
}
// display matched percent
matchedtxt.classList.remove("hide");
var pct = 100 * count / maxwidth;
if (pct != 100) pct = pct.toFixed(1)
matchedtxt.firstChild.nodeValue = "Matched: " + pct + "%";
}
]]>
</script>
<rect x="0.0" y="0" width="1200.0" height="1542.0" fill="url(#background)" />
<text id="title" x="600.00" y="24" >Flame Graph</text>
<text id="details" x="10.00" y="1525" > </text>
<text id="unzoom" x="10.00" y="24" class="hide">Reset Zoom</text>
<text id="search" x="1090.00" y="24" >Search</text>
<text id="ignorecase" x="1174.00" y="24" >ic</text>
<text id="matched" x="1090.00" y="1525" > </text>
<g id="frames">
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE16ParseIfStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEE (1 samples, 0.36%)</title><rect x="18.6" y="117" width="4.2" height="15.0" fill="rgb(229,18,25)" rx="2" ry="2" />
<text x="21.55" y="127.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser12ParseProgramEPNS0_7IsolateEPNS0_9ParseInfoE (1 samples, 0.36%)</title><rect x="1181.4" y="1029" width="4.3" height="15.0" fill="rgb(245,190,27)" rx="2" ry="2" />
<text x="1184.45" y="1039.5" ></text>
</g>
<g >
<title>_ZN4node13native_module15NativeModuleEnv15CompileFunctionERKN2v820FunctionCallbackInfoINS2_5ValueEEE (1 samples, 0.36%)</title><rect x="1177.2" y="1173" width="4.2" height="15.0" fill="rgb(248,28,7)" rx="2" ry="2" />
<text x="1180.17" y="1183.5" ></text>
</g>
<g >
<title>_ZN2v88internal9PreParser32ParseStatementListAndLogFunctionEPNS0_25PreParserFormalParametersE (1 samples, 0.36%)</title><rect x="1181.4" y="757" width="4.3" height="15.0" fill="rgb(249,4,18)" rx="2" ry="2" />
<text x="1184.45" y="767.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE25ParseArrowFunctionLiteralERKNS0_25PreParserFormalParametersE (1 samples, 0.36%)</title><rect x="18.6" y="181" width="4.2" height="15.0" fill="rgb(206,195,28)" rx="2" ry="2" />
<text x="21.55" y="191.5" ></text>
</g>
<g >
<title>InterpretedFunction:Module._extensions..js internal/modules/cjs/loader.js:1146 (272 samples, 98.55%)</title><rect x="10.0" y="1221" width="1162.9" height="15.0" fill="rgb(239,195,31)" rx="2" ry="2" />
<text x="13.00" y="1231.5" >InterpretedFunction:Module._extensions..js internal/modules/cjs/loader.js:1146</text>
</g>
<g >
<title>try_to_wake_up (1 samples, 0.36%)</title><rect x="1185.7" y="1349" width="4.3" height="15.0" fill="rgb(244,104,23)" rx="2" ry="2" />
<text x="1188.72" y="1359.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_115CompileToplevelEPNS0_9ParseInfoEPNS0_7IsolateEPNS0_15IsCompiledScopeE (1 samples, 0.36%)</title><rect x="1181.4" y="1061" width="4.3" height="15.0" fill="rgb(247,196,52)" rx="2" ry="2" />
<text x="1184.45" y="1071.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_115CompileToplevelEPNS0_9ParseInfoEPNS0_7IsolateEPNS0_15IsCompiledScopeE (1 samples, 0.36%)</title><rect x="18.6" y="549" width="4.2" height="15.0" fill="rgb(233,11,30)" rx="2" ry="2" />
<text x="21.55" y="559.5" ></text>
</g>
<g >
<title>_ZN2v88internal3Map22CopyReplaceDescriptorsEPNS0_7IsolateENS0_6HandleIS1_EENS4_INS0_15DescriptorArrayEEENS4_INS0_16LayoutDescriptorEEENS0_14TransitionFlagENS0_11MaybeHandleINS0_4NameEEEPKcNS0_20SimpleTransitionFlagE (1 samples, 0.36%)</title><rect x="1172.9" y="949" width="4.3" height="15.0" fill="rgb(229,103,3)" rx="2" ry="2" />
<text x="1175.90" y="959.5" ></text>
</g>
<g >
<title>Builtins_JSEntry (273 samples, 98.91%)</title><rect x="10.0" y="1317" width="1167.2" height="15.0" fill="rgb(253,61,28)" rx="2" ry="2" />
<text x="13.00" y="1327.5" >Builtins_JSEntry</text>
</g>
<g >
<title>_ZN2v88internal9PreParser16PreParseFunctionEPKNS0_12AstRawStringENS0_12FunctionKindENS0_18FunctionSyntaxKindEPNS0_16DeclarationScopeEPiPPNS0_20ProducedPreparseDataEi (1 samples, 0.36%)</title><rect x="18.6" y="357" width="4.2" height="15.0" fill="rgb(234,62,16)" rx="2" ry="2" />
<text x="21.55" y="367.5" ></text>
</g>
<g >
<title>[libc-2.31.so] (1 samples, 0.36%)</title><rect x="1177.2" y="853" width="4.2" height="15.0" fill="rgb(222,56,28)" rx="2" ry="2" />
<text x="1180.17" y="863.5" ></text>
</g>
<g >
<title>page_fault (1 samples, 0.36%)</title><rect x="14.3" y="1173" width="4.3" height="15.0" fill="rgb(215,155,11)" rx="2" ry="2" />
<text x="17.28" y="1183.5" ></text>
</g>
<g >
<title>_ZN2v88internal18PerfectKeywordHash8GetTokenEPKci.part.23 (1 samples, 0.36%)</title><rect x="1181.4" y="597" width="4.3" height="15.0" fill="rgb(229,172,52)" rx="2" ry="2" />
<text x="1184.45" y="607.5" ></text>
</g>
<g >
<title>_ZN4node13native_module18NativeModuleLoader15CompileAsModuleEN2v85LocalINS2_7ContextEEEPKcPNS1_6ResultE (1 samples, 0.36%)</title><rect x="1181.4" y="1141" width="4.3" height="15.0" fill="rgb(211,98,33)" rx="2" ry="2" />
<text x="1184.45" y="1151.5" ></text>
</g>
<g >
<title>_ZN2v88internal3Map24TransitionToDataPropertyEPNS0_7IsolateENS0_6HandleIS1_EENS4_INS0_4NameEEENS4_INS0_6ObjectEEENS0_18PropertyAttributesENS0_17PropertyConstnessENS0_11StoreOriginE (1 samples, 0.36%)</title><rect x="1172.9" y="997" width="4.3" height="15.0" fill="rgb(211,173,9)" rx="2" ry="2" />
<text x="1175.90" y="1007.5" ></text>
</g>
<g >
<title>Builtins_JSEntry (1 samples, 0.36%)</title><rect x="18.6" y="1061" width="4.2" height="15.0" fill="rgb(235,144,52)" rx="2" ry="2" />
<text x="21.55" y="1071.5" ></text>
</g>
<g >
<title>wake_up_q (1 samples, 0.36%)</title><rect x="1185.7" y="1365" width="4.3" height="15.0" fill="rgb(219,34,24)" rx="2" ry="2" />
<text x="1188.72" y="1375.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE14ParseStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEES9_NS0_30AllowLabelledFunctionStatementE (1 samples, 0.36%)</title><rect x="1181.4" y="725" width="4.3" height="15.0" fill="rgb(242,153,25)" rx="2" ry="2" />
<text x="1184.45" y="735.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE (1 samples, 0.36%)</title><rect x="1181.4" y="1173" width="4.3" height="15.0" fill="rgb(234,37,34)" rx="2" ry="2" />
<text x="1184.45" y="1183.5" ></text>
</g>
<g >
<title>_ZN2v88internal8Compiler18GetWrappedFunctionENS0_6HandleINS0_6StringEEENS2_INS0_10FixedArrayEEENS2_INS0_7ContextEEERKNS1_13ScriptDetailsENS_19ScriptOriginOptionsEPNS0_10ScriptDataENS_14ScriptCompiler14CompileOptionsENSF_13NoCacheReasonE (1 samples, 0.36%)</title><rect x="1181.4" y="1077" width="4.3" height="15.0" fill="rgb(228,212,36)" rx="2" ry="2" />
<text x="1184.45" y="1087.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer16SerializeContentENS0_3MapEi (1 samples, 0.36%)</title><rect x="1177.2" y="1029" width="4.2" height="15.0" fill="rgb(232,160,48)" rx="2" ry="2" />
<text x="1180.17" y="1039.5" ></text>
</g>
<g >
<title>_ZN2v88Function4CallENS_5LocalINS_7ContextEEENS1_INS_5ValueEEEiPS5_ (273 samples, 98.91%)</title><rect x="10.0" y="1365" width="1167.2" height="15.0" fill="rgb(251,157,11)" rx="2" ry="2" />
<text x="13.00" y="1375.5" >_ZN2v88Function4CallENS_5LocalINS_7ContextEEENS1_INS_5ValueEEEiPS5_</text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="1177.2" y="1253" width="4.2" height="15.0" fill="rgb(205,140,10)" rx="2" ry="2" />
<text x="1180.17" y="1263.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_113CreateLiteralINS1_19ObjectLiteralHelperEEENS0_11MaybeHandleINS0_8JSObjectEEEPNS0_7IsolateENS4_INS0_14FeedbackVectorEEEiNS0_6HandleINS0_10HeapObjectEEEi (1 samples, 0.36%)</title><rect x="1172.9" y="1093" width="4.3" height="15.0" fill="rgb(209,133,31)" rx="2" ry="2" />
<text x="1175.90" y="1103.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser12SkipFunctionEPKNS0_12AstRawStringENS0_12FunctionKindENS0_18FunctionSyntaxKindEPNS0_16DeclarationScopeEPiS9_PPNS0_20ProducedPreparseDataE (1 samples, 0.36%)</title><rect x="18.6" y="373" width="4.2" height="15.0" fill="rgb(213,178,51)" rx="2" ry="2" />
<text x="21.55" y="383.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser13ParseFunctionEPNS0_10ScopedListIPNS0_9StatementEPvEEPKNS0_12AstRawStringEiNS0_12FunctionKindENS0_18FunctionSyntaxKindEPNS0_16DeclarationScopeEPiSF_PbSF_SF_PNS0_8ZoneListISA_EE (1 samples, 0.36%)</title><rect x="18.6" y="453" width="4.2" height="15.0" fill="rgb(242,194,49)" rx="2" ry="2" />
<text x="21.55" y="463.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE25ParseHoistableDeclarationEiNS_4base5FlagsINS0_17ParseFunctionFlagEiEEPNS0_8ZoneListIPKNS0_12AstRawStringEEEb (1 samples, 0.36%)</title><rect x="18.6" y="405" width="4.2" height="15.0" fill="rgb(242,150,28)" rx="2" ry="2" />
<text x="21.55" y="415.5" ></text>
</g>
<g >
<title>_ZN4node13native_module18NativeModuleLoader16LookupAndCompileEN2v85LocalINS2_7ContextEEEPKcPSt6vectorINS3_INS2_6StringEEESaISA_EEPNS1_6ResultE (1 samples, 0.36%)</title><rect x="18.6" y="613" width="4.2" height="15.0" fill="rgb(206,109,23)" rx="2" ry="2" />
<text x="21.55" y="623.5" ></text>
</g>
<g >
<title>InterpretedFunction:createWritableStdioStream internal/bootstrap/switches/is_main_thread.js:37 (1 samples, 0.36%)</title><rect x="18.6" y="885" width="4.2" height="15.0" fill="rgb(254,132,47)" rx="2" ry="2" />
<text x="21.55" y="895.5" ></text>
</g>
<g >
<title>_ZN2v88internal19BodyDescriptorApplyINS0_15CallIterateBodyEvNS0_3MapENS0_10HeapObjectEiPNS0_13ObjectVisitorEEET0_NS0_12InstanceTypeET1_T2_T3_T4_ (1 samples, 0.36%)</title><rect x="1177.2" y="997" width="4.2" height="15.0" fill="rgb(214,143,19)" rx="2" ry="2" />
<text x="1180.17" y="1007.5" ></text>
</g>
<g >
<title>_ZN4node11Environment16RunBootstrappingEv (2 samples, 0.72%)</title><rect x="1177.2" y="1397" width="8.5" height="15.0" fill="rgb(209,189,8)" rx="2" ry="2" />
<text x="1180.17" y="1407.5" ></text>
</g>
<g >
<title>_ZN4node13native_module18NativeModuleLoader15CompileAsModuleEN2v85LocalINS2_7ContextEEEPKcPNS1_6ResultE (1 samples, 0.36%)</title><rect x="1177.2" y="1157" width="4.2" height="15.0" fill="rgb(242,165,53)" rx="2" ry="2" />
<text x="1180.17" y="1167.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Object15AddDataPropertyEPNS0_14LookupIteratorENS0_6HandleIS1_EENS0_18PropertyAttributesENS_5MaybeINS0_11ShouldThrowEEENS0_11StoreOriginE (1 samples, 0.36%)</title><rect x="1172.9" y="1029" width="4.3" height="15.0" fill="rgb(218,28,50)" rx="2" ry="2" />
<text x="1175.90" y="1039.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser20ParseFunctionLiteralEPKNS0_12AstRawStringENS0_7Scanner8LocationENS0_20FunctionNameValidityENS0_12FunctionKindEiNS0_18FunctionSyntaxKindENS0_12LanguageModeEPNS0_8ZoneListIS4_EE (1 samples, 0.36%)</title><rect x="18.6" y="389" width="4.2" height="15.0" fill="rgb(216,77,49)" rx="2" ry="2" />
<text x="21.55" y="399.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer9SerializeEv (1 samples, 0.36%)</title><rect x="1177.2" y="917" width="4.2" height="15.0" fill="rgb(241,183,39)" rx="2" ry="2" />
<text x="1180.17" y="927.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE22ParseLogicalExpressionEv (1 samples, 0.36%)</title><rect x="1181.4" y="853" width="4.3" height="15.0" fill="rgb(252,80,48)" rx="2" ry="2" />
<text x="1184.45" y="863.5" ></text>
</g>
<g >
<title>Builtins_ArrayPrototypeSplice (250 samples, 90.58%)</title><rect x="74.1" y="1173" width="1068.9" height="15.0" fill="rgb(252,182,48)" rx="2" ry="2" />
<text x="77.13" y="1183.5" >Builtins_ArrayPrototypeSplice</text>
</g>
<g >
<title>_ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE (1 samples, 0.36%)</title><rect x="18.6" y="677" width="4.2" height="15.0" fill="rgb(244,104,43)" rx="2" ry="2" />
<text x="21.55" y="687.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE23ParseFunctionExpressionEv (1 samples, 0.36%)</title><rect x="1181.4" y="821" width="4.3" height="15.0" fill="rgb(248,3,35)" rx="2" ry="2" />
<text x="1184.45" y="831.5" ></text>
</g>
<g >
<title>entry_SYSCALL_64_after_hwframe (1 samples, 0.36%)</title><rect x="1185.7" y="1445" width="4.3" height="15.0" fill="rgb(225,179,17)" rx="2" ry="2" />
<text x="1188.72" y="1455.5" ></text>
</g>
<g >
<title>Builtins_LoadIC_NoFeedback (1 samples, 0.36%)</title><rect x="18.6" y="965" width="4.2" height="15.0" fill="rgb(222,103,0)" rx="2" ry="2" />
<text x="21.55" y="975.5" ></text>
</g>
<g >
<title>Builtins_GrowFastSmiOrObjectElements (2 samples, 0.72%)</title><rect x="10.0" y="1189" width="8.6" height="15.0" fill="rgb(228,93,25)" rx="2" ry="2" />
<text x="13.00" y="1199.5" ></text>
</g>
<g >
<title>InterpretedFunction:Module.load internal/modules/cjs/loader.js:973 (272 samples, 98.55%)</title><rect x="10.0" y="1237" width="1162.9" height="15.0" fill="rgb(230,63,25)" rx="2" ry="2" />
<text x="13.00" y="1247.5" >InterpretedFunction:Module.load internal/modules/cjs/loader.js:973</text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="18.6" y="709" width="4.2" height="15.0" fill="rgb(243,203,38)" rx="2" ry="2" />
<text x="21.55" y="719.5" ></text>
</g>
<g >
<title>Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (1 samples, 0.36%)</title><rect x="18.6" y="1173" width="4.2" height="15.0" fill="rgb(211,54,42)" rx="2" ry="2" />
<text x="21.55" y="1183.5" ></text>
</g>
<g >
<title>InterpretedFunction: /home/mmarchini/workspace/misc/node-performance-problem/foo.js:1 (13 samples, 4.71%)</title><rect x="18.6" y="1189" width="55.5" height="15.0" fill="rgb(241,19,1)" rx="2" ry="2" />
<text x="21.55" y="1199.5" >Inter..</text>
</g>
<g >
<title>_ZN2v814ScriptCompiler24CompileFunctionInContextENS_5LocalINS_7ContextEEEPNS0_6SourceEmPNS1_INS_6StringEEEmPNS1_INS_6ObjectEEENS0_14CompileOptionsENS0_13NoCacheReasonE (1 samples, 0.36%)</title><rect x="1181.4" y="1109" width="4.3" height="15.0" fill="rgb(217,62,30)" rx="2" ry="2" />
<text x="1184.45" y="1119.5" ></text>
</g>
<g >
<title>InterpretedFunction:Module._load internal/modules/cjs/loader.js:822 (272 samples, 98.55%)</title><rect x="10.0" y="1253" width="1162.9" height="15.0" fill="rgb(251,64,42)" rx="2" ry="2" />
<text x="13.00" y="1263.5" >InterpretedFunction:Module._load internal/modules/cjs/loader.js:822</text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer15SerializeObjectEv (1 samples, 0.36%)</title><rect x="1177.2" y="1045" width="4.2" height="15.0" fill="rgb(220,28,37)" rx="2" ry="2" />
<text x="1180.17" y="1055.5" ></text>
</g>
<g >
<title>_ZN2v88internal9Execution4CallEPNS0_7IsolateENS0_6HandleINS0_6ObjectEEES6_iPS6_ (1 samples, 0.36%)</title><rect x="18.6" y="1093" width="4.2" height="15.0" fill="rgb(230,155,54)" rx="2" ry="2" />
<text x="21.55" y="1103.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParseStatementListItemEv (1 samples, 0.36%)</title><rect x="18.6" y="149" width="4.2" height="15.0" fill="rgb(240,225,24)" rx="2" ry="2" />
<text x="21.55" y="159.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser14DoParseProgramEPNS0_7IsolateEPNS0_9ParseInfoE (1 samples, 0.36%)</title><rect x="18.6" y="501" width="4.2" height="15.0" fill="rgb(221,68,17)" rx="2" ry="2" />
<text x="21.55" y="511.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParseStatementListItemEv (1 samples, 0.36%)</title><rect x="1181.4" y="741" width="4.3" height="15.0" fill="rgb(225,220,45)" rx="2" ry="2" />
<text x="1184.45" y="751.5" ></text>
</g>
<g >
<title>_ZN2v88internal13ObjectVisitor22VisitCustomWeakPointerENS0_10HeapObjectENS0_14FullObjectSlotE (1 samples, 0.36%)</title><rect x="1177.2" y="981" width="4.2" height="15.0" fill="rgb(205,48,15)" rx="2" ry="2" />
<text x="1180.17" y="991.5" ></text>
</g>
<g >
<title>InterpretedFunction:get internal/console/constructor.js:187 (1 samples, 0.36%)</title><rect x="18.6" y="949" width="4.2" height="15.0" fill="rgb(217,53,25)" rx="2" ry="2" />
<text x="21.55" y="959.5" ></text>
</g>
<g >
<title>_ZN4node13native_module18NativeModuleLoader15CompileAsModuleEN2v85LocalINS2_7ContextEEEPKcPNS1_6ResultE (1 samples, 0.36%)</title><rect x="18.6" y="629" width="4.2" height="15.0" fill="rgb(228,225,28)" rx="2" ry="2" />
<text x="21.55" y="639.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer13OutputRawDataEm (1 samples, 0.36%)</title><rect x="1177.2" y="869" width="4.2" height="15.0" fill="rgb(228,33,10)" rx="2" ry="2" />
<text x="1180.17" y="879.5" ></text>
</g>
<g >
<title>_ZN4node11Environment13BootstrapNodeEv (2 samples, 0.72%)</title><rect x="1177.2" y="1381" width="8.5" height="15.0" fill="rgb(205,6,42)" rx="2" ry="2" />
<text x="1180.17" y="1391.5" ></text>
</g>
<g >
<title>_ZN4node13native_module18NativeModuleLoader16LookupAndCompileEN2v85LocalINS2_7ContextEEEPKcPSt6vectorINS3_INS2_6StringEEESaISA_EEPNS1_6ResultE (1 samples, 0.36%)</title><rect x="1177.2" y="1141" width="4.2" height="15.0" fill="rgb(254,51,16)" rx="2" ry="2" />
<text x="1180.17" y="1151.5" ></text>
</g>
<g >
<title>_ZN4node13native_module18NativeModuleLoader16LookupAndCompileEN2v85LocalINS2_7ContextEEEPKcPSt6vectorINS3_INS2_6StringEEESaISA_EEPNS1_6ResultE (1 samples, 0.36%)</title><rect x="1181.4" y="1125" width="4.3" height="15.0" fill="rgb(237,27,4)" rx="2" ry="2" />
<text x="1184.45" y="1135.5" ></text>
</g>
<g >
<title>InterpretedFunction: vm.js:1 (1 samples, 0.36%)</title><rect x="1172.9" y="1157" width="4.3" height="15.0" fill="rgb(239,220,12)" rx="2" ry="2" />
<text x="1175.90" y="1167.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE14ParseStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEES9_NS0_30AllowLabelledFunctionStatementE (1 samples, 0.36%)</title><rect x="18.6" y="133" width="4.2" height="15.0" fill="rgb(254,17,32)" rx="2" ry="2" />
<text x="21.55" y="143.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_16InvokeEPNS0_7IsolateERKNS1_12InvokeParamsE (1 samples, 0.36%)</title><rect x="18.6" y="1077" width="4.2" height="15.0" fill="rgb(217,162,9)" rx="2" ry="2" />
<text x="21.55" y="1087.5" ></text>
</g>
<g >
<title>_ZN2v88internal8Compiler18GetWrappedFunctionENS0_6HandleINS0_6StringEEENS2_INS0_10FixedArrayEEENS2_INS0_7ContextEEERKNS1_13ScriptDetailsENS_19ScriptOriginOptionsEPNS0_10ScriptDataENS_14ScriptCompiler14CompileOptionsENSF_13NoCacheReasonE (1 samples, 0.36%)</title><rect x="18.6" y="565" width="4.2" height="15.0" fill="rgb(218,32,42)" rx="2" ry="2" />
<text x="21.55" y="575.5" ></text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="1177.2" y="1237" width="4.2" height="15.0" fill="rgb(250,3,3)" rx="2" ry="2" />
<text x="1180.17" y="1247.5" ></text>
</g>
<g >
<title>_ZN2v88internal14CodeSerializer15SerializeObjectENS0_10HeapObjectE (1 samples, 0.36%)</title><rect x="1177.2" y="1077" width="4.2" height="15.0" fill="rgb(232,114,13)" rx="2" ry="2" />
<text x="1180.17" y="1087.5" ></text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="18.6" y="821" width="4.2" height="15.0" fill="rgb(207,93,31)" rx="2" ry="2" />
<text x="21.55" y="831.5" ></text>
</g>
<g >
<title>Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit (1 samples, 0.36%)</title><rect x="1172.9" y="1125" width="4.3" height="15.0" fill="rgb(243,8,50)" rx="2" ry="2" />
<text x="1175.90" y="1135.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE37ParseAssignmentExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="18.6" y="197" width="4.2" height="15.0" fill="rgb(216,169,3)" rx="2" ry="2" />
<text x="21.55" y="207.5" ></text>
</g>
<g >
<title>Builtins_JSEntry (2 samples, 0.72%)</title><rect x="1177.2" y="1301" width="8.5" height="15.0" fill="rgb(252,65,18)" rx="2" ry="2" />
<text x="1180.17" y="1311.5" ></text>
</g>
<g >
<title>_ZN4node14StartExecutionEPNS_11EnvironmentEPKc (273 samples, 98.91%)</title><rect x="10.0" y="1397" width="1167.2" height="15.0" fill="rgb(234,57,45)" rx="2" ry="2" />
<text x="13.00" y="1407.5" >_ZN4node14StartExecutionEPNS_11EnvironmentEPKc</text>
</g>
<g >
<title>_ZN2v88internal9PreParser16PreParseFunctionEPKNS0_12AstRawStringENS0_12FunctionKindENS0_18FunctionSyntaxKindEPNS0_16DeclarationScopeEPiPPNS0_20ProducedPreparseDataEi (1 samples, 0.36%)</title><rect x="1181.4" y="773" width="4.3" height="15.0" fill="rgb(219,43,44)" rx="2" ry="2" />
<text x="1184.45" y="783.5" ></text>
</g>
<g >
<title>__x64_sys_futex (1 samples, 0.36%)</title><rect x="1185.7" y="1413" width="4.3" height="15.0" fill="rgb(222,102,7)" rx="2" ry="2" />
<text x="1188.72" y="1423.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParseStatementListItemEv (1 samples, 0.36%)</title><rect x="1181.4" y="645" width="4.3" height="15.0" fill="rgb(228,155,14)" rx="2" ry="2" />
<text x="1184.45" y="655.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer13VisitPointersENS0_10HeapObjectENS0_14FullObjectSlotES4_ (1 samples, 0.36%)</title><rect x="1177.2" y="965" width="4.2" height="15.0" fill="rgb(216,4,31)" rx="2" ry="2" />
<text x="1180.17" y="975.5" ></text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="1172.9" y="1221" width="4.3" height="15.0" fill="rgb(242,96,18)" rx="2" ry="2" />
<text x="1175.90" y="1231.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE25ParseHoistableDeclarationEPNS0_8ZoneListIPKNS0_12AstRawStringEEEb (1 samples, 0.36%)</title><rect x="18.6" y="421" width="4.2" height="15.0" fill="rgb(223,47,50)" rx="2" ry="2" />
<text x="21.55" y="431.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer9SerializeEv (1 samples, 0.36%)</title><rect x="1177.2" y="1061" width="4.2" height="15.0" fill="rgb(233,10,41)" rx="2" ry="2" />
<text x="1180.17" y="1071.5" ></text>
</g>
<g >
<title>_ZN2v88internal3Map17ConnectTransitionEPNS0_7IsolateENS0_6HandleIS1_EES5_NS4_INS0_4NameEEENS0_20SimpleTransitionFlagE (1 samples, 0.36%)</title><rect x="1172.9" y="933" width="4.3" height="15.0" fill="rgb(232,94,20)" rx="2" ry="2" />
<text x="1175.90" y="943.5" ></text>
</g>
<g >
<title>LazyCompile:* /home/mmarchini/workspace/misc/node-performance-problem/foo.js:1 (257 samples, 93.12%)</title><rect x="74.1" y="1189" width="1098.8" height="15.0" fill="rgb(253,127,4)" rx="2" ry="2" />
<text x="77.13" y="1199.5" >LazyCompile:* /home/mmarchini/workspace/misc/node-performance-problem/foo.js:1</text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_119CreateObjectLiteralEPNS0_7IsolateENS0_6HandleINS0_28ObjectBoilerplateDescriptionEEEiNS0_14AllocationTypeE (1 samples, 0.36%)</title><rect x="1172.9" y="1077" width="4.3" height="15.0" fill="rgb(230,152,38)" rx="2" ry="2" />
<text x="1175.90" y="1087.5" ></text>
</g>
<g >
<title>_ZN2v88internal3Map13CopyWithFieldEPNS0_7IsolateENS0_6HandleIS1_EENS4_INS0_4NameEEENS4_INS0_9FieldTypeEEENS0_18PropertyAttributesENS0_17PropertyConstnessENS0_14RepresentationENS0_14TransitionFlagE (1 samples, 0.36%)</title><rect x="1172.9" y="981" width="4.3" height="15.0" fill="rgb(239,70,52)" rx="2" ry="2" />
<text x="1175.90" y="991.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE17ParseFunctionBodyEPNS0_10ScopedListIPNS0_9StatementEPvEEPKNS0_12AstRawStringEiRKNS0_22ParserFormalParametersENS0_12FunctionKindENS0_18FunctionSyntaxKindENS3_16FunctionBodyTypeE (1 samples, 0.36%)</title><rect x="18.6" y="437" width="4.2" height="15.0" fill="rgb(244,124,7)" rx="2" ry="2" />
<text x="21.55" y="447.5" ></text>
</g>
<g >
<title>_ZN2v88internal7parsing12ParseProgramEPNS0_9ParseInfoEPNS0_7IsolateENS1_29ReportErrorsAndStatisticsModeE (1 samples, 0.36%)</title><rect x="1181.4" y="1045" width="4.3" height="15.0" fill="rgb(224,181,35)" rx="2" ry="2" />
<text x="1184.45" y="1055.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE17ParseFunctionBodyEPNS0_10ScopedListIPNS0_9StatementEPvEEPKNS0_12AstRawStringEiRKNS0_22ParserFormalParametersENS0_12FunctionKindENS0_18FunctionSyntaxKindENS3_16FunctionBodyTypeE (1 samples, 0.36%)</title><rect x="1181.4" y="949" width="4.3" height="15.0" fill="rgb(246,132,53)" rx="2" ry="2" />
<text x="1184.45" y="959.5" ></text>
</g>
<g >
<title>_ZN2v88internal14CodeSerializer15SerializeObjectENS0_10HeapObjectE (1 samples, 0.36%)</title><rect x="1177.2" y="933" width="4.2" height="15.0" fill="rgb(244,63,12)" rx="2" ry="2" />
<text x="1180.17" y="943.5" ></text>
</g>
<g >
<title>Builtins_CreateObjectLiteralHandler (1 samples, 0.36%)</title><rect x="1172.9" y="1141" width="4.3" height="15.0" fill="rgb(253,174,34)" rx="2" ry="2" />
<text x="1175.90" y="1151.5" ></text>
</g>
<g >
<title>_ZN2v814ScriptCompiler24CompileFunctionInContextENS_5LocalINS_7ContextEEEPNS0_6SourceEmPNS1_INS_6StringEEEmPNS1_INS_6ObjectEEENS0_14CompileOptionsENS0_13NoCacheReasonE (1 samples, 0.36%)</title><rect x="18.6" y="597" width="4.2" height="15.0" fill="rgb(209,114,32)" rx="2" ry="2" />
<text x="21.55" y="607.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE37ParseAssignmentExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="18.6" y="85" width="4.2" height="15.0" fill="rgb(211,214,54)" rx="2" ry="2" />
<text x="21.55" y="95.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer16SerializeContentENS0_3MapEi (1 samples, 0.36%)</title><rect x="1177.2" y="885" width="4.2" height="15.0" fill="rgb(224,42,54)" rx="2" ry="2" />
<text x="1180.17" y="895.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer15SerializeObjectEv (1 samples, 0.36%)</title><rect x="1177.2" y="901" width="4.2" height="15.0" fill="rgb(233,65,11)" rx="2" ry="2" />
<text x="1180.17" y="911.5" ></text>
</g>
<g >
<title>_ZN2v88internal8JSObject30SetOwnPropertyIgnoreAttributesENS0_6HandleIS1_EENS2_INS0_4NameEEENS2_INS0_6ObjectEEENS0_18PropertyAttributesE (1 samples, 0.36%)</title><rect x="1172.9" y="1061" width="4.3" height="15.0" fill="rgb(228,133,36)" rx="2" ry="2" />
<text x="1175.90" y="1071.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE10ParseBlockEPNS0_8ZoneListIPKNS0_12AstRawStringEEE (1 samples, 0.36%)</title><rect x="1181.4" y="661" width="4.3" height="15.0" fill="rgb(213,160,40)" rx="2" ry="2" />
<text x="1184.45" y="671.5" ></text>
</g>
<g >
<title>InterpretedFunction: tty.js:1 (1 samples, 0.36%)</title><rect x="18.6" y="837" width="4.2" height="15.0" fill="rgb(251,122,0)" rx="2" ry="2" />
<text x="21.55" y="847.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE27ParseExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="18.6" y="277" width="4.2" height="15.0" fill="rgb(218,142,18)" rx="2" ry="2" />
<text x="21.55" y="287.5" ></text>
</g>
<g >
<title>_ZN2v88internal7parsing12ParseProgramEPNS0_9ParseInfoEPNS0_7IsolateENS1_29ReportErrorsAndStatisticsModeE (1 samples, 0.36%)</title><rect x="18.6" y="533" width="4.2" height="15.0" fill="rgb(252,27,21)" rx="2" ry="2" />
<text x="21.55" y="543.5" ></text>
</g>
<g >
<title>Builtins_JSEntryTrampoline (2 samples, 0.72%)</title><rect x="1177.2" y="1285" width="8.5" height="15.0" fill="rgb(221,34,23)" rx="2" ry="2" />
<text x="1180.17" y="1295.5" ></text>
</g>
<g >
<title>_raw_spin_unlock_irqrestore (1 samples, 0.36%)</title><rect x="1185.7" y="1333" width="4.3" height="15.0" fill="rgb(253,40,7)" rx="2" ry="2" />
<text x="1188.72" y="1343.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParseLogicalExpressionEv (1 samples, 0.36%)</title><rect x="18.6" y="245" width="4.2" height="15.0" fill="rgb(220,87,32)" rx="2" ry="2" />
<text x="21.55" y="255.5" ></text>
</g>
<g >
<title>_ZN2v88Function4CallENS_5LocalINS_7ContextEEENS1_INS_5ValueEEEiPS5_ (2 samples, 0.72%)</title><rect x="1177.2" y="1349" width="8.5" height="15.0" fill="rgb(215,181,15)" rx="2" ry="2" />
<text x="1180.17" y="1359.5" ></text>
</g>
<g >
<title>_ZN2v814ScriptCompiler26CreateCodeCacheForFunctionENS_5LocalINS_8FunctionEEE (1 samples, 0.36%)</title><rect x="1177.2" y="1125" width="4.2" height="15.0" fill="rgb(212,42,54)" rx="2" ry="2" />
<text x="1180.17" y="1135.5" ></text>
</g>
<g >
<title>InterpretedFunction: internal/modules/cjs/loader.js:1 (1 samples, 0.36%)</title><rect x="1172.9" y="1205" width="4.3" height="15.0" fill="rgb(251,124,45)" rx="2" ry="2" />
<text x="1175.90" y="1215.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE34ParseExpressionOrLabelledStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEES9_NS0_30AllowLabelledFunctionStatementE (1 samples, 0.36%)</title><rect x="18.6" y="293" width="4.2" height="15.0" fill="rgb(222,32,6)" rx="2" ry="2" />
<text x="21.55" y="303.5" ></text>
</g>
<g >
<title>_ZN2v88internal9Execution4CallEPNS0_7IsolateENS0_6HandleINS0_6ObjectEEES6_iPS6_ (273 samples, 98.91%)</title><rect x="10.0" y="1349" width="1167.2" height="15.0" fill="rgb(252,201,34)" rx="2" ry="2" />
<text x="13.00" y="1359.5" >_ZN2v88internal9Execution4CallEPNS0_7IsolateENS0_6HandleINS0_6ObjectEEES6_iPS6_</text>
</g>
<g >
<title>Builtins_LoadIC_NoFeedback (1 samples, 0.36%)</title><rect x="18.6" y="917" width="4.2" height="15.0" fill="rgb(238,22,15)" rx="2" ry="2" />
<text x="21.55" y="927.5" ></text>
</g>
<g >
<title>Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (1 samples, 0.36%)</title><rect x="1181.4" y="1205" width="4.3" height="15.0" fill="rgb(206,120,26)" rx="2" ry="2" />
<text x="1184.45" y="1215.5" ></text>
</g>
<g >
<title>InterpretedFunction:setupProcessObject internal/bootstrap/node.js:270 (1 samples, 0.36%)</title><rect x="1181.4" y="1253" width="4.3" height="15.0" fill="rgb(231,221,26)" rx="2" ry="2" />
<text x="1184.45" y="1263.5" ></text>
</g>
<g >
<title>InterpretedFunction: internal/main/run_main_module.js:1 (273 samples, 98.91%)</title><rect x="10.0" y="1285" width="1167.2" height="15.0" fill="rgb(227,43,23)" rx="2" ry="2" />
<text x="13.00" y="1295.5" >InterpretedFunction: internal/main/run_main_module.js:1</text>
</g>
<g >
<title>_ZN2v88internal15ExpressionScopeINS0_11ParserTypesINS0_9PreParserEEEE11NewVariableEPKNS0_12AstRawStringEi (1 samples, 0.36%)</title><rect x="18.6" y="37" width="4.2" height="15.0" fill="rgb(230,126,40)" rx="2" ry="2" />
<text x="21.55" y="47.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParseStatementListItemEv (1 samples, 0.36%)</title><rect x="18.6" y="325" width="4.2" height="15.0" fill="rgb(251,83,21)" rx="2" ry="2" />
<text x="21.55" y="335.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE14ParseStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEES9_NS0_30AllowLabelledFunctionStatementE (1 samples, 0.36%)</title><rect x="1181.4" y="933" width="4.3" height="15.0" fill="rgb(223,141,21)" rx="2" ry="2" />
<text x="1184.45" y="943.5" ></text>
</g>
<g >
<title>_ZN2v88internal14LookupIterator31PrepareTransitionToDataPropertyENS0_6HandleINS0_10JSReceiverEEENS2_INS0_6ObjectEEENS0_18PropertyAttributesENS0_11StoreOriginE (1 samples, 0.36%)</title><rect x="1172.9" y="1013" width="4.3" height="15.0" fill="rgb(226,146,46)" rx="2" ry="2" />
<text x="1175.90" y="1023.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser12ParseWrappedEPNS0_7IsolateEPNS0_9ParseInfoEPNS0_10ScopedListIPNS0_9StatementEPvEEPNS0_16DeclarationScopeEPNS0_4ZoneE (1 samples, 0.36%)</title><rect x="1181.4" y="997" width="4.3" height="15.0" fill="rgb(210,31,49)" rx="2" ry="2" />
<text x="1184.45" y="1007.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE37ParseAssignmentExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="18.6" y="261" width="4.2" height="15.0" fill="rgb(238,195,25)" rx="2" ry="2" />
<text x="21.55" y="271.5" ></text>
</g>
<g >
<title>_ZN4node19ExecuteBootstrapperEPNS_11EnvironmentEPKcPSt6vectorIN2v85LocalINS5_6StringEEESaIS8_EEPS4_INS6_INS5_5ValueEEESaISD_EE (273 samples, 98.91%)</title><rect x="10.0" y="1381" width="1167.2" height="15.0" fill="rgb(247,47,15)" rx="2" ry="2" />
<text x="13.00" y="1391.5" >_ZN4node19ExecuteBootstrapperEPNS_11EnvironmentEPKcPSt6vectorIN2v85LocalINS5_6StringEEESaIS8_EEPS4_INS6_INS5_5ValueEEESaISD_EE</text>
</g>
<g >
<title>do_futex (1 samples, 0.36%)</title><rect x="1185.7" y="1397" width="4.3" height="15.0" fill="rgb(250,65,35)" rx="2" ry="2" />
<text x="1188.72" y="1407.5" ></text>
</g>
<g >
<title>_ZN4node5StartEiPPc (275 samples, 99.64%)</title><rect x="10.0" y="1445" width="1175.7" height="15.0" fill="rgb(249,68,41)" rx="2" ry="2" />
<text x="13.00" y="1455.5" >_ZN4node5StartEiPPc</text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="18.6" y="805" width="4.2" height="15.0" fill="rgb(245,159,3)" rx="2" ry="2" />
<text x="21.55" y="815.5" ></text>
</g>
<g >
<title>_ZN2v88Function4CallENS_5LocalINS_7ContextEEENS1_INS_5ValueEEEiPS5_ (1 samples, 0.36%)</title><rect x="18.6" y="1109" width="4.2" height="15.0" fill="rgb(235,40,7)" rx="2" ry="2" />
<text x="21.55" y="1119.5" ></text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="18.6" y="869" width="4.2" height="15.0" fill="rgb(250,126,40)" rx="2" ry="2" />
<text x="21.55" y="879.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE (1 samples, 0.36%)</title><rect x="1177.2" y="1189" width="4.2" height="15.0" fill="rgb(237,183,39)" rx="2" ry="2" />
<text x="1180.17" y="1199.5" ></text>
</g>
<g >
<title>_ZN2v88internal10HeapObject11IterateBodyENS0_3MapEiPNS0_13ObjectVisitorE (1 samples, 0.36%)</title><rect x="1177.2" y="1013" width="4.2" height="15.0" fill="rgb(239,68,24)" rx="2" ry="2" />
<text x="1180.17" y="1023.5" ></text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="18.6" y="725" width="4.2" height="15.0" fill="rgb(227,57,8)" rx="2" ry="2" />
<text x="21.55" y="735.5" ></text>
</g>
<g >
<title>_ZN2v88internal8JSObject33DefineOwnPropertyIgnoreAttributesEPNS0_14LookupIteratorENS0_6HandleINS0_6ObjectEEENS0_18PropertyAttributesENS_5MaybeINS0_11ShouldThrowEEENS1_20AccessorInfoHandlingE (1 samples, 0.36%)</title><rect x="1172.9" y="1045" width="4.3" height="15.0" fill="rgb(218,142,37)" rx="2" ry="2" />
<text x="1175.90" y="1055.5" ></text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="1172.9" y="1189" width="4.3" height="15.0" fill="rgb(228,184,20)" rx="2" ry="2" />
<text x="1175.90" y="1199.5" ></text>
</g>
<g >
<title>__do_page_fault (1 samples, 0.36%)</title><rect x="14.3" y="1157" width="4.3" height="15.0" fill="rgb(243,153,3)" rx="2" ry="2" />
<text x="17.28" y="1167.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE29ParseLeftHandSideContinuationENS0_19PreParserExpressionE (1 samples, 0.36%)</title><rect x="18.6" y="229" width="4.2" height="15.0" fill="rgb(226,143,7)" rx="2" ry="2" />
<text x="21.55" y="239.5" ></text>
</g>
<g >
<title>LazyCompile:*two /home/mmarchini/workspace/misc/node-performance-problem/foo.js:12 (2 samples, 0.72%)</title><rect x="65.6" y="1173" width="8.5" height="15.0" fill="rgb(236,192,45)" rx="2" ry="2" />
<text x="68.58" y="1183.5" ></text>
</g>
<g >
<title>all (276 samples, 100%)</title><rect x="10.0" y="1493" width="1180.0" height="15.0" fill="rgb(211,201,9)" rx="2" ry="2" />
<text x="13.00" y="1503.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer16ObjectSerializer13VisitPointersENS0_10HeapObjectENS0_19FullMaybeObjectSlotES4_ (1 samples, 0.36%)</title><rect x="1177.2" y="949" width="4.2" height="15.0" fill="rgb(221,57,2)" rx="2" ry="2" />
<text x="1180.17" y="959.5" ></text>
</g>
<g >
<title>Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (1 samples, 0.36%)</title><rect x="1177.2" y="1221" width="4.2" height="15.0" fill="rgb(249,229,14)" rx="2" ry="2" />
<text x="1180.17" y="1231.5" ></text>
</g>
<g >
<title>__libc_start_main (275 samples, 99.64%)</title><rect x="10.0" y="1461" width="1175.7" height="15.0" fill="rgb(213,112,38)" rx="2" ry="2" />
<text x="13.00" y="1471.5" >__libc_start_main</text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="18.6" y="757" width="4.2" height="15.0" fill="rgb(207,118,27)" rx="2" ry="2" />
<text x="21.55" y="767.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParsePrimaryExpressionEv (1 samples, 0.36%)</title><rect x="18.6" y="53" width="4.2" height="15.0" fill="rgb(234,192,51)" rx="2" ry="2" />
<text x="21.55" y="63.5" ></text>
</g>
<g >
<title>_ZN4node19ExecuteBootstrapperEPNS_11EnvironmentEPKcPSt6vectorIN2v85LocalINS5_6StringEEESaIS8_EEPS4_INS6_INS5_5ValueEEESaISD_EE (2 samples, 0.72%)</title><rect x="1177.2" y="1365" width="8.5" height="15.0" fill="rgb(222,207,21)" rx="2" ry="2" />
<text x="1180.17" y="1375.5" ></text>
</g>
<g >
<title>_ZN2v814ScriptCompiler24CompileFunctionInContextENS_5LocalINS_7ContextEEEPNS0_6SourceEmPNS1_INS_6StringEEEmPNS1_INS_6ObjectEEENS0_14CompileOptionsENS0_13NoCacheReasonEPNS1_INS_14ScriptOrModuleEEE (1 samples, 0.36%)</title><rect x="18.6" y="581" width="4.2" height="15.0" fill="rgb(229,36,19)" rx="2" ry="2" />
<text x="21.55" y="591.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE14ParseArgumentsEPNS0_23PreParserExpressionListEPbNS0_20ParsingArrowHeadFlagE (1 samples, 0.36%)</title><rect x="18.6" y="213" width="4.2" height="15.0" fill="rgb(205,51,50)" rx="2" ry="2" />
<text x="21.55" y="223.5" ></text>
</g>
<g >
<title>[libc-2.31.so] (2 samples, 0.72%)</title><rect x="65.6" y="1157" width="8.5" height="15.0" fill="rgb(230,184,11)" rx="2" ry="2" />
<text x="68.58" y="1167.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser20ParseFunctionLiteralEPKNS0_12AstRawStringENS0_7Scanner8LocationENS0_20FunctionNameValidityENS0_12FunctionKindEiNS0_18FunctionSyntaxKindENS0_12LanguageModeEPNS0_8ZoneListIS4_EE (1 samples, 0.36%)</title><rect x="18.6" y="469" width="4.2" height="15.0" fill="rgb(207,128,27)" rx="2" ry="2" />
<text x="21.55" y="479.5" ></text>
</g>
<g >
<title>_ZN2v88internal9PreParser32ParseStatementListAndLogFunctionEPNS0_25PreParserFormalParametersE (1 samples, 0.36%)</title><rect x="18.6" y="341" width="4.2" height="15.0" fill="rgb(228,193,53)" rx="2" ry="2" />
<text x="21.55" y="351.5" ></text>
</g>
<g >
<title>_ZN4node13native_module15NativeModuleEnv15CompileFunctionERKN2v820FunctionCallbackInfoINS2_5ValueEEE (1 samples, 0.36%)</title><rect x="1181.4" y="1157" width="4.3" height="15.0" fill="rgb(249,146,3)" rx="2" ry="2" />
<text x="1184.45" y="1167.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE17ParseFunctionBodyEPNS0_28PreParserScopedStatementListENS0_19PreParserIdentifierEiRKNS0_25PreParserFormalParametersENS0_12FunctionKindENS0_18FunctionSyntaxKindENS3_16FunctionBodyTypeE (1 samples, 0.36%)</title><rect x="18.6" y="165" width="4.2" height="15.0" fill="rgb(250,115,9)" rx="2" ry="2" />
<text x="21.55" y="175.5" ></text>
</g>
<g >
<title>InterpretedFunction:getStdout internal/bootstrap/switches/is_main_thread.js:115 (1 samples, 0.36%)</title><rect x="18.6" y="901" width="4.2" height="15.0" fill="rgb(251,150,20)" rx="2" ry="2" />
<text x="21.55" y="911.5" ></text>
</g>
<g >
<title>InterpretedFunction: stream.js:1 (1 samples, 0.36%)</title><rect x="18.6" y="741" width="4.2" height="15.0" fill="rgb(217,54,44)" rx="2" ry="2" />
<text x="21.55" y="751.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser12ParseProgramEPNS0_7IsolateEPNS0_9ParseInfoE (1 samples, 0.36%)</title><rect x="18.6" y="517" width="4.2" height="15.0" fill="rgb(244,121,30)" rx="2" ry="2" />
<text x="21.55" y="527.5" ></text>
</g>
<g >
<title>_ZN2v88internal10Serializer17VisitRootPointersENS0_4RootEPKcNS0_14FullObjectSlotES5_ (1 samples, 0.36%)</title><rect x="1177.2" y="1093" width="4.2" height="15.0" fill="rgb(240,165,17)" rx="2" ry="2" />
<text x="1180.17" y="1103.5" ></text>
</g>
<g >
<title>Builtins_LdaNamedPropertyHandler (1 samples, 0.36%)</title><rect x="18.6" y="933" width="4.2" height="15.0" fill="rgb(215,144,20)" rx="2" ry="2" />
<text x="21.55" y="943.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE22ParsePrimaryExpressionEv (1 samples, 0.36%)</title><rect x="1181.4" y="837" width="4.3" height="15.0" fill="rgb(227,198,22)" rx="2" ry="2" />
<text x="1184.45" y="847.5" ></text>
</g>
<g >
<title>InterpretedFunction:value internal/console/constructor.js:299 (1 samples, 0.36%)</title><rect x="18.6" y="997" width="4.2" height="15.0" fill="rgb(242,79,18)" rx="2" ry="2" />
<text x="21.55" y="1007.5" ></text>
</g>
<g >
<title>InterpretedFunction: internal/bootstrap/node.js:1 (2 samples, 0.72%)</title><rect x="1177.2" y="1269" width="8.5" height="15.0" fill="rgb(228,92,34)" rx="2" ry="2" />
<text x="1180.17" y="1279.5" ></text>
</g>
<g >
<title>InterpretedFunction:Module._compile internal/modules/cjs/loader.js:1091 (272 samples, 98.55%)</title><rect x="10.0" y="1205" width="1162.9" height="15.0" fill="rgb(222,135,14)" rx="2" ry="2" />
<text x="13.00" y="1215.5" >InterpretedFunction:Module._compile internal/modules/cjs/loader.js:1091</text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE16ParseIfStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEE (1 samples, 0.36%)</title><rect x="1181.4" y="709" width="4.3" height="15.0" fill="rgb(209,219,40)" rx="2" ry="2" />
<text x="1184.45" y="719.5" ></text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="18.6" y="853" width="4.2" height="15.0" fill="rgb(232,194,2)" rx="2" ry="2" />
<text x="21.55" y="863.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser13ParseFunctionEPNS0_10ScopedListIPNS0_9StatementEPvEEPKNS0_12AstRawStringEiNS0_12FunctionKindENS0_18FunctionSyntaxKindEPNS0_16DeclarationScopeEPiSF_PbSF_SF_PNS0_8ZoneListISA_EE (1 samples, 0.36%)</title><rect x="1181.4" y="965" width="4.3" height="15.0" fill="rgb(221,36,21)" rx="2" ry="2" />
<text x="1184.45" y="975.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_16InvokeEPNS0_7IsolateERKNS1_12InvokeParamsE (2 samples, 0.72%)</title><rect x="1177.2" y="1317" width="8.5" height="15.0" fill="rgb(212,43,39)" rx="2" ry="2" />
<text x="1180.17" y="1327.5" ></text>
</g>
<g >
<title>_ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE (1 samples, 0.36%)</title><rect x="1177.2" y="1205" width="4.2" height="15.0" fill="rgb(245,116,0)" rx="2" ry="2" />
<text x="1180.17" y="1215.5" ></text>
</g>
<g >
<title>Builtins_JSEntryTrampoline (273 samples, 98.91%)</title><rect x="10.0" y="1301" width="1167.2" height="15.0" fill="rgb(220,0,10)" rx="2" ry="2" />
<text x="13.00" y="1311.5" >Builtins_JSEntryTrampoline</text>
</g>
<g >
<title>_ZN2v88internal27Runtime_CreateObjectLiteralEiPmPNS0_7IsolateE (1 samples, 0.36%)</title><rect x="1172.9" y="1109" width="4.3" height="15.0" fill="rgb(234,53,21)" rx="2" ry="2" />
<text x="1175.90" y="1119.5" ></text>
</g>
<g >
<title>pthread_cond_signal@@GLIBC_2.3.2 (1 samples, 0.36%)</title><rect x="1185.7" y="1461" width="4.3" height="15.0" fill="rgb(207,181,1)" rx="2" ry="2" />
<text x="1188.72" y="1471.5" ></text>
</g>
<g >
<title>_ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE (1 samples, 0.36%)</title><rect x="1181.4" y="1189" width="4.3" height="15.0" fill="rgb(237,142,23)" rx="2" ry="2" />
<text x="1184.45" y="1199.5" ></text>
</g>
<g >
<title>Builtins_ArrayPrototypeSplice (10 samples, 3.62%)</title><rect x="22.8" y="1157" width="42.8" height="15.0" fill="rgb(206,190,29)" rx="2" ry="2" />
<text x="25.83" y="1167.5" >Buil..</text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE (1 samples, 0.36%)</title><rect x="18.6" y="1141" width="4.2" height="15.0" fill="rgb(236,156,20)" rx="2" ry="2" />
<text x="21.55" y="1151.5" ></text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="18.6" y="773" width="4.2" height="15.0" fill="rgb(216,219,1)" rx="2" ry="2" />
<text x="21.55" y="783.5" ></text>
</g>
<g >
<title>Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (1 samples, 0.36%)</title><rect x="18.6" y="693" width="4.2" height="15.0" fill="rgb(252,45,44)" rx="2" ry="2" />
<text x="21.55" y="703.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser12SkipFunctionEPKNS0_12AstRawStringENS0_12FunctionKindENS0_18FunctionSyntaxKindEPNS0_16DeclarationScopeEPiS9_PPNS0_20ProducedPreparseDataE (1 samples, 0.36%)</title><rect x="1181.4" y="789" width="4.3" height="15.0" fill="rgb(216,150,50)" rx="2" ry="2" />
<text x="1184.45" y="799.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE27ParseExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="18.6" y="101" width="4.2" height="15.0" fill="rgb(220,192,25)" rx="2" ry="2" />
<text x="21.55" y="111.5" ></text>
</g>
<g >
<title>_ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE (1 samples, 0.36%)</title><rect x="18.6" y="1157" width="4.2" height="15.0" fill="rgb(238,162,18)" rx="2" ry="2" />
<text x="21.55" y="1167.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_16InvokeEPNS0_7IsolateERKNS1_12InvokeParamsE (273 samples, 98.91%)</title><rect x="10.0" y="1333" width="1167.2" height="15.0" fill="rgb(228,159,29)" rx="2" ry="2" />
<text x="13.00" y="1343.5" >_ZN2v88internal12_GLOBAL__N_16InvokeEPNS0_7IsolateERKNS1_12InvokeParamsE</text>
</g>
<g >
<title>_ZN2v814ScriptCompiler24CompileFunctionInContextENS_5LocalINS_7ContextEEEPNS0_6SourceEmPNS1_INS_6StringEEEmPNS1_INS_6ObjectEEENS0_14CompileOptionsENS0_13NoCacheReasonEPNS1_INS_14ScriptOrModuleEEE (1 samples, 0.36%)</title><rect x="1181.4" y="1093" width="4.3" height="15.0" fill="rgb(218,190,28)" rx="2" ry="2" />
<text x="1184.45" y="1103.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE37ParseAssignmentExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="1181.4" y="869" width="4.3" height="15.0" fill="rgb(252,47,50)" rx="2" ry="2" />
<text x="1184.45" y="879.5" ></text>
</g>
<g >
<title>_ZN4node13native_module15NativeModuleEnv15CompileFunctionERKN2v820FunctionCallbackInfoINS2_5ValueEEE (1 samples, 0.36%)</title><rect x="18.6" y="645" width="4.2" height="15.0" fill="rgb(243,114,47)" rx="2" ry="2" />
<text x="21.55" y="655.5" ></text>
</g>
<g >
<title>Builtins_JSEntryTrampoline (1 samples, 0.36%)</title><rect x="18.6" y="1045" width="4.2" height="15.0" fill="rgb(209,224,47)" rx="2" ry="2" />
<text x="21.55" y="1055.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParseVariableStatementENS3_26VariableDeclarationContextEPNS0_8ZoneListIPKNS0_12AstRawStringEEE (1 samples, 0.36%)</title><rect x="1181.4" y="629" width="4.3" height="15.0" fill="rgb(212,127,37)" rx="2" ry="2" />
<text x="1184.45" y="639.5" ></text>
</g>
<g >
<title>_ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE (1 samples, 0.36%)</title><rect x="18.6" y="661" width="4.2" height="15.0" fill="rgb(223,216,13)" rx="2" ry="2" />
<text x="21.55" y="671.5" ></text>
</g>
<g >
<title>_ZN4node16NodeMainInstance21CreateMainEnvironmentEPi (2 samples, 0.72%)</title><rect x="1177.2" y="1413" width="8.5" height="15.0" fill="rgb(218,114,40)" rx="2" ry="2" />
<text x="1180.17" y="1423.5" ></text>
</g>
<g >
<title>InterpretedFunction:two /home/mmarchini/workspace/misc/node-performance-problem/foo.js:12 (10 samples, 3.62%)</title><rect x="22.8" y="1173" width="42.8" height="15.0" fill="rgb(218,189,43)" rx="2" ry="2" />
<text x="25.83" y="1183.5" >Inte..</text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE14ParseStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEES9_NS0_30AllowLabelledFunctionStatementE (1 samples, 0.36%)</title><rect x="18.6" y="309" width="4.2" height="15.0" fill="rgb(207,61,23)" rx="2" ry="2" />
<text x="21.55" y="319.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser12ParseWrappedEPNS0_7IsolateEPNS0_9ParseInfoEPNS0_10ScopedListIPNS0_9StatementEPvEEPNS0_16DeclarationScopeEPNS0_4ZoneE (1 samples, 0.36%)</title><rect x="18.6" y="485" width="4.2" height="15.0" fill="rgb(206,134,11)" rx="2" ry="2" />
<text x="21.55" y="495.5" ></text>
</g>
<g >
<title>Builtins_LdaNamedPropertyHandler (1 samples, 0.36%)</title><rect x="18.6" y="981" width="4.2" height="15.0" fill="rgb(250,90,11)" rx="2" ry="2" />
<text x="21.55" y="991.5" ></text>
</g>
<g >
<title>_ZN2v88internal9Execution4CallEPNS0_7IsolateENS0_6HandleINS0_6ObjectEEES6_iPS6_ (2 samples, 0.72%)</title><rect x="1177.2" y="1333" width="8.5" height="15.0" fill="rgb(207,71,22)" rx="2" ry="2" />
<text x="1180.17" y="1343.5" ></text>
</g>
<g >
<title>_ZN2v88internal19TransitionsAccessor6InsertENS0_6HandleINS0_4NameEEENS2_INS0_3MapEEENS0_20SimpleTransitionFlagE (1 samples, 0.36%)</title><rect x="1172.9" y="917" width="4.3" height="15.0" fill="rgb(247,19,39)" rx="2" ry="2" />
<text x="1175.90" y="927.5" ></text>
</g>
<g >
<title>InterpretedFunction: net.js:1 (1 samples, 0.36%)</title><rect x="18.6" y="789" width="4.2" height="15.0" fill="rgb(210,149,25)" rx="2" ry="2" />
<text x="21.55" y="799.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser20ParseFunctionLiteralEPKNS0_12AstRawStringENS0_7Scanner8LocationENS0_20FunctionNameValidityENS0_12FunctionKindEiNS0_18FunctionSyntaxKindENS0_12LanguageModeEPNS0_8ZoneListIS4_EE (1 samples, 0.36%)</title><rect x="1181.4" y="805" width="4.3" height="15.0" fill="rgb(248,86,20)" rx="2" ry="2" />
<text x="1184.45" y="815.5" ></text>
</g>
<g >
<title>InterpretedFunction:prepareMainThreadExecution internal/bootstrap/pre_execution.js:14 (1 samples, 0.36%)</title><rect x="1172.9" y="1269" width="4.3" height="15.0" fill="rgb(244,21,14)" rx="2" ry="2" />
<text x="1175.90" y="1279.5" ></text>
</g>
<g >
<title>_ZN2v88internal7Scanner4NextEv (1 samples, 0.36%)</title><rect x="1181.4" y="613" width="4.3" height="15.0" fill="rgb(206,193,26)" rx="2" ry="2" />
<text x="1184.45" y="623.5" ></text>
</g>
<g >
<title>InterpretedFunction:log internal/console/constructor.js:335 (1 samples, 0.36%)</title><rect x="18.6" y="1013" width="4.2" height="15.0" fill="rgb(233,61,43)" rx="2" ry="2" />
<text x="21.55" y="1023.5" ></text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="1172.9" y="1173" width="4.3" height="15.0" fill="rgb(232,185,13)" rx="2" ry="2" />
<text x="1175.90" y="1183.5" ></text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="1181.4" y="1237" width="4.3" height="15.0" fill="rgb(233,51,44)" rx="2" ry="2" />
<text x="1184.45" y="1247.5" ></text>
</g>
<g >
<title>_ZN2v88internal6Parser20ParseFunctionLiteralEPKNS0_12AstRawStringENS0_7Scanner8LocationENS0_20FunctionNameValidityENS0_12FunctionKindEiNS0_18FunctionSyntaxKindENS0_12LanguageModeEPNS0_8ZoneListIS4_EE (1 samples, 0.36%)</title><rect x="1181.4" y="981" width="4.3" height="15.0" fill="rgb(218,226,53)" rx="2" ry="2" />
<text x="1184.45" y="991.5" ></text>
</g>
<g >
<title>[libc-2.31.so] (7 samples, 2.54%)</title><rect x="1143.0" y="1173" width="29.9" height="15.0" fill="rgb(225,99,50)" rx="2" ry="2" />
<text x="1145.97" y="1183.5" >[l..</text>
</g>
<g >
<title>_ZN2v88internal14CodeSerializer9SerializeENS0_6HandleINS0_18SharedFunctionInfoEEE (1 samples, 0.36%)</title><rect x="1177.2" y="1109" width="4.2" height="15.0" fill="rgb(215,8,35)" rx="2" ry="2" />
<text x="1180.17" y="1119.5" ></text>
</g>
<g >
<title>node (276 samples, 100.00%)</title><rect x="10.0" y="1477" width="1180.0" height="15.0" fill="rgb(212,195,25)" rx="2" ry="2" />
<text x="13.00" y="1487.5" >node</text>
</g>
<g >
<title>_ZN2v88internal6Parser14DoParseProgramEPNS0_7IsolateEPNS0_9ParseInfoE (1 samples, 0.36%)</title><rect x="1181.4" y="1013" width="4.3" height="15.0" fill="rgb(220,56,23)" rx="2" ry="2" />
<text x="1184.45" y="1023.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE37ParseAssignmentExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="1181.4" y="885" width="4.3" height="15.0" fill="rgb(213,59,13)" rx="2" ry="2" />
<text x="1184.45" y="895.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE14ParseStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEES9_NS0_30AllowLabelledFunctionStatementE (1 samples, 0.36%)</title><rect x="1181.4" y="677" width="4.3" height="15.0" fill="rgb(227,157,31)" rx="2" ry="2" />
<text x="1184.45" y="687.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE20ParseScopedStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEE (1 samples, 0.36%)</title><rect x="1181.4" y="693" width="4.3" height="15.0" fill="rgb(210,98,48)" rx="2" ry="2" />
<text x="1184.45" y="703.5" ></text>
</g>
<g >
<title>Builtins_ArgumentsAdaptorTrampoline (1 samples, 0.36%)</title><rect x="18.6" y="1029" width="4.2" height="15.0" fill="rgb(207,46,50)" rx="2" ry="2" />
<text x="21.55" y="1039.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_9PreParserEE22ParseLogicalExpressionEv (1 samples, 0.36%)</title><rect x="18.6" y="69" width="4.2" height="15.0" fill="rgb(223,83,9)" rx="2" ry="2" />
<text x="21.55" y="79.5" ></text>
</g>
<g >
<title>InterpretedFunction:initializeCJSLoader internal/bootstrap/pre_execution.js:399 (1 samples, 0.36%)</title><rect x="1172.9" y="1253" width="4.3" height="15.0" fill="rgb(216,160,29)" rx="2" ry="2" />
<text x="1175.90" y="1263.5" ></text>
</g>
<g >
<title>InterpretedFunction:compileForInternalLoader internal/bootstrap/loaders.js:264 (1 samples, 0.36%)</title><rect x="1181.4" y="1221" width="4.3" height="15.0" fill="rgb(232,210,3)" rx="2" ry="2" />
<text x="1184.45" y="1231.5" ></text>
</g>
<g >
<title>_ZN4node9inspector12_GLOBAL__N_120InspectorConsoleCallERKN2v820FunctionCallbackInfoINS2_5ValueEEE (1 samples, 0.36%)</title><rect x="18.6" y="1125" width="4.2" height="15.0" fill="rgb(232,58,44)" rx="2" ry="2" />
<text x="21.55" y="1135.5" ></text>
</g>
<g >
<title>Builtins_ExtractFastJSArray (3 samples, 1.09%)</title><rect x="1130.1" y="1157" width="12.9" height="15.0" fill="rgb(217,223,46)" rx="2" ry="2" />
<text x="1133.14" y="1167.5" ></text>
</g>
<g >
<title>_ZN4node16NodeMainInstance3RunEv (275 samples, 99.64%)</title><rect x="10.0" y="1429" width="1175.7" height="15.0" fill="rgb(227,64,2)" rx="2" ry="2" />
<text x="13.00" y="1439.5" >_ZN4node16NodeMainInstance3RunEv</text>
</g>
<g >
<title>InterpretedFunction:nativeModuleRequire internal/bootstrap/loaders.js:297 (1 samples, 0.36%)</title><rect x="1172.9" y="1237" width="4.3" height="15.0" fill="rgb(253,172,16)" rx="2" ry="2" />
<text x="1175.90" y="1247.5" ></text>
</g>
<g >
<title>futex_wake (1 samples, 0.36%)</title><rect x="1185.7" y="1381" width="4.3" height="15.0" fill="rgb(218,60,15)" rx="2" ry="2" />
<text x="1188.72" y="1391.5" ></text>
</g>
<g >
<title>_ZN2v88internal3Map17CopyAddDescriptorEPNS0_7IsolateENS0_6HandleIS1_EEPNS0_10DescriptorENS0_14TransitionFlagE (1 samples, 0.36%)</title><rect x="1172.9" y="965" width="4.3" height="15.0" fill="rgb(237,160,18)" rx="2" ry="2" />
<text x="1175.90" y="975.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE27ParseExpressionCoverGrammarEv (1 samples, 0.36%)</title><rect x="1181.4" y="901" width="4.3" height="15.0" fill="rgb(238,225,32)" rx="2" ry="2" />
<text x="1184.45" y="911.5" ></text>
</g>
<g >
<title>_ZN2v88internal10ParserBaseINS0_6ParserEE34ParseExpressionOrLabelledStatementEPNS0_8ZoneListIPKNS0_12AstRawStringEEES9_NS0_30AllowLabelledFunctionStatementE (1 samples, 0.36%)</title><rect x="1181.4" y="917" width="4.3" height="15.0" fill="rgb(250,122,31)" rx="2" ry="2" />
<text x="1184.45" y="927.5" ></text>
</g>
<g >
<title>do_syscall_64 (1 samples, 0.36%)</title><rect x="1185.7" y="1429" width="4.3" height="15.0" fill="rgb(240,220,44)" rx="2" ry="2" />
<text x="1188.72" y="1439.5" ></text>
</g>
<g >
<title>InterpretedFunction:executeUserEntryPoint internal/modules/run_main.js:64 (272 samples, 98.55%)</title><rect x="10.0" y="1269" width="1162.9" height="15.0" fill="rgb(247,23,42)" rx="2" ry="2" />
<text x="13.00" y="1279.5" >InterpretedFunction:executeUserEntryPoint internal/modules/run_main.js:64</text>
</g>
<g >
<title>_ZN4node15LoadEnvironmentEPNS_11EnvironmentE (273 samples, 98.91%)</title><rect x="10.0" y="1413" width="1167.2" height="15.0" fill="rgb(227,195,33)" rx="2" ry="2" />
<text x="13.00" y="1423.5" >_ZN4node15LoadEnvironmentEPNS_11EnvironmentE</text>
</g>
</g>
</svg>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment