Lines Matching refs:total_weight
51 def get_heat_color(callsite, total_weight): argument
52 r = 245 + 10 * (1 - callsite.weight() / total_weight)
53 g = 110 + 105 * (1 - callsite.weight() / total_weight)
66 def create_svg_node(process, callsite, depth, f, total_weight, height, color_scheme, nav): argument
67 x = float(callsite.offset) / total_weight * 100
69 width = callsite.weight() / total_weight * 100
80 r, g, b = get_heat_color(callsite, total_weight)
101 callsite.weight() / total_weight * 100,
122 def render_svg_nodes(process, flamegraph, depth, f, total_weight, height, color_scheme): argument
141 create_svg_node(process, child, depth, f, total_weight, height, color_scheme, nav)
143 render_svg_nodes(process, child, depth + 1, f, total_weight, height, color_scheme)