(function(){'use strict';function flameGraph(){var w=960,h=540,c=18,selection=null,tooltip=true,title="",transitionDuration=750,transitionEase="cubic-in-out",sort=true,reversed=false,clickHandler=null;var tip=d3.tip().direction("s").offset([8,0]).attr('class','d3-flame-graph-tip').html(function(d){return label(d);});var labelFormat=function(d){return d.name+" ("+d3.round(100*d.dx,3)+"%, "+d.value+" samples)";};function setDetails(t){var details=document.getElementById("details");if(details) details.innerHTML=t;} function label(d){if(!d.dummy){return labelFormat(d);}else{return"";}} function name(d){return d.name;} var colorMapper=function(d){return d.highlight?"#E600E6":colorHash(d.name);};function generateHash(name){var hash=0,weight=1,max_hash=0,mod=10,max_char=6;if(name){for(var i=0;imax_char){break;} hash+=weight*(name.charCodeAt(i)%mod);max_hash+=weight*(mod-1);weight*=0.70;} if(max_hash>0){hash=hash/max_hash;}} return hash;} function colorHash(name){var vector=0;if(name){name=name.replace(/.*`/,"");name=name.replace(/\(.*/,"");vector=generateHash(name);} var r=200+Math.round(55*vector);var g=0+Math.round(230*(1-vector));var b=0+Math.round(55*(1-vector));return"rgb("+r+","+g+","+b+")";} function augment(data){if(data.children&&(data.children.length>0)){data.children.forEach(augment);var childValues=0;data.children.forEach(function(child){childValues+=child.value;});if(childValues